/* ==========================================================================
   PERSPLIT — PREMIUM DESIGN SYSTEM & STYLESHEET
   Accurately derived from Flutter lib/theme/app_colors.dart, app_typography.dart,
   app_radius.dart, app_spacing.dart, and AdaptiveScaffold.
   ========================================================================== */

:root {
  /* Brand Primary (Emerald Palette) */
  --primary: #10B981;
  /* Emerald 500 */
  --primary-dark: #059669;
  /* Emerald 600 */
  --primary-deep: #047857;
  /* Emerald 700 */
  --primary-light: #34D399;
  /* Emerald 400 */
  --primary-surface: #ECFDF5;
  /* Emerald 50 */
  --primary-border: #A7F3D0;
  /* Emerald 200 */

  /* Neutrals & Surfaces (Slate Palette) */
  --background: #F8FAFC;
  /* Slate 50 */
  --surface: #FFFFFF;
  /* Pure White */
  --surface-variant: #F1F5F9;
  /* Slate 100 */
  --card-border: #E2E8F0;
  /* Slate 200 */
  --input-border: #CBD5E1;
  /* Slate 300 */
  --divider: #EEF2F6;

  /* Typography Palette (High-Contrast WCAG Compliant) */
  --text-primary: #0F172A;
  /* Slate 900 */
  --text-secondary: #334155;
  /* Slate 700 */
  --text-muted: #475569;
  /* Slate 600 */
  --text-light: #64748B;
  /* Slate 500 */
  --text-inverse: #FFFFFF;

  /* Financial & Semantic Indicators */
  --receive-green: #047857;
  /* Emerald 700 */
  --receive-bg: #ECFDF5;
  /* Emerald 50 */
  --receive-border: #A7F3D0;
  /* Emerald 200 */

  --pay-red: #B91C1C;
  /* Red 700 */
  --pay-bg: #FEF2F2;
  /* Red 50 */
  --pay-border: #FECACA;
  /* Red 200 */

  --pending-amber: #B45309;
  /* Amber 700 */
  --pending-bg: #FFFBEB;
  /* Amber 50 */
  --pending-border: #FDE68A;
  /* Amber 200 */

  --info-blue: #1D4ED8;
  /* Blue 700 */
  --info-bg: #EFF6FF;
  /* Blue 50 */
  --info-border: #BFDBFE;
  /* Blue 200 */

  --admin-purple: #7C3AED;
  /* Purple 600 */
  --admin-surface: #F5F3FF;
  /* Purple 50 */
  --admin-border: #DDD6FE;
  /* Purple 200 */

  /* Category Specific Colors */
  --cat-food: #F97316;
  --cat-food-bg: #FFF7ED;
  --cat-food-border: #FFEDD5;

  --cat-travel: #0EA5E9;
  --cat-travel-bg: #F0F9FF;
  --cat-travel-border: #BAE6FD;

  --cat-utilities: #EAB308;
  --cat-utilities-bg: #FEFCE8;
  --cat-utilities-border: #FEF08A;

  --cat-shopping: #8B5CF6;
  --cat-shopping-bg: #F5F3FF;
  --cat-shopping-border: #DDD6FE;

  --cat-rent: #64748B;
  --cat-rent-bg: #F8FAFC;
  --cat-rent-border: #E2E8F0;

  /* Border Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Elevation & Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 5px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 6px 18px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.08), 0 4px 14px -2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.03), 0 6px 16px -4px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 4px 6px -1px rgba(15, 23, 42, 0.03), 0 16px 32px -6px rgba(15, 23, 42, 0.08);
  --shadow-primary-glow: 0 8px 24px -4px rgba(16, 185, 129, 0.35);
  --shadow-device: 0 30px 70px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8), 0 1px 2px rgba(15, 23, 42, 0.04);

  /* Layout & Dimensions */
  --nav-height: 72px;
  --max-content-width: 1200px;
  --max-narrow-width: 860px;
  --font-main: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;

  /* Transitions & Easing */
  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 240ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  background-color: var(--background);
  color: var(--text-primary);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  line-height: 1.5;
  background-color: var(--background);
  color: var(--text-primary);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

/* Common Container */
.container {
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Common Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
  background: var(--primary-surface);
  border: 1px solid var(--primary-border);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.06);
}

.section-title {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.62;
}

/* ==========================================================================
   PERSPLIT REUSABLE UI COMPONENTS
   ========================================================================== */

/* Buttons (AppButton) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(180deg, #10B981 0%, #059669 100%);
  color: var(--text-inverse);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 14px rgba(16, 185, 129, 0.28), 0 0 0 1px rgba(16, 185, 129, 0.3) inset;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #059669 0%, #047857 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 22px rgba(16, 185, 129, 0.36);
  transform: translateY(-1.5px);
}

.btn-secondary {
  background-color: var(--primary-surface);
  color: var(--primary-deep);
  border: 1px solid var(--primary-border);
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.06);
}

.btn-secondary:hover {
  background-color: #d1fae5;
  border-color: #6ee7b7;
  transform: translateY(-1.5px);
}

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

.btn-outline:hover {
  border-color: #cbd5e1;
  color: var(--primary-deep);
  background-color: #FAFAFA;
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-sm);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* App Card (AppCard) */
.app-card {
  background-color: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.app-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: #cbd5e1;
}

/* Badges (AppBadge) */
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  line-height: 1.3;
}

.badge-paid {
  background: var(--receive-bg);
  color: var(--receive-green);
  border: 1px solid var(--receive-border);
}

.badge-pending {
  background: var(--pending-bg);
  color: var(--pending-amber);
  border: 1px solid var(--pending-border);
}

.badge-pay {
  background: var(--pay-bg);
  color: var(--pay-red);
  border: 1px solid var(--pay-border);
}

.badge-admin {
  background: var(--admin-surface);
  color: var(--admin-purple);
  border: 1px solid var(--admin-border);
}

.badge-group {
  background: #EEF2FF;
  color: #4F46E5;
  border: 1px solid #C7D2FE;
}

.badge-direct {
  background: #F0F9FF;
  color: #0284C7;
  border: 1px solid #BAE6FD;
}

.badge-offline {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

/* Segmented Control (AppSegmentedControl) */
.segmented-control {
  display: inline-flex;
  align-items: center;
  background-color: var(--surface-variant);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 2px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) inset;
}

.segmented-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  background: transparent;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.segmented-btn.active {
  background-color: var(--surface);
  color: var(--primary-deep);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
}

.segmented-btn:hover:not(.active) {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   1. STICKY NAVBAR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--card-border);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--primary-deep);
  background-color: rgba(16, 185, 129, 0.08);
}

.nav-link.active {
  color: var(--primary-deep);
  font-weight: 700;
  background-color: var(--primary-surface);
  border-color: var(--primary-border);
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-surface);
  color: var(--primary-deep);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.05);
}

.mobile-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 8px;
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.mobile-toggle:hover {
  background-color: var(--surface-variant);
  border-color: #cbd5e1;
}

.mobile-toggle .icon-close {
  display: none;
}

.mobile-toggle.open {
  background-color: var(--primary-surface);
  border-color: var(--primary-border);
  color: var(--primary-deep);
}

.mobile-toggle.open .icon-menu {
  display: none;
}

.mobile-toggle.open .icon-close {
  display: block;
}

/* Mobile Drawer */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  z-index: 999;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 11px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-menu a:hover {
  color: var(--primary-deep);
  background-color: var(--primary-surface);
}

.mobile-menu-prelaunch {
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--primary-surface);
  border: 1px solid var(--primary-border);
  text-align: center;
}

.mobile-menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  color: var(--primary-deep);
  font-size: 13.5px;
}

.mobile-menu-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */

.hero {
  padding-top: calc(var(--nav-height) + 52px);
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% -80px, rgba(16, 185, 129, 0.12), transparent 70%),
    radial-gradient(800px 500px at 90% 200px, rgba(14, 165, 233, 0.05), transparent 60%),
    radial-gradient(600px 400px at 10% 240px, rgba(16, 185, 129, 0.04), transparent 60%),
    var(--background);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 80%);
  pointer-events: none;
  z-index: 0;
}

.hero>.container {
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-surface);
  border: 1px solid var(--primary-border);
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-headline {
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 22px;
}

.hero-headline .text-gradient {
  background: linear-gradient(135deg, #10B981 0%, #047857 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-launch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: var(--surface);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-deep);
  box-shadow: var(--shadow-sm);
}

/* Realistic App Mockup */
.hero-visual-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.hero-device-frame {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-device);
  overflow: hidden;
}

.app-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--card-border);
}

.window-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.dot-red {
  background: #FF5F56;
}

.dot-yellow {
  background: #FFBD2E;
}

.dot-green {
  background: #27C93F;
}

.window-title-chip {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sync-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--receive-green);
  background: var(--receive-bg);
  border: 1px solid var(--receive-border);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* Mockup Layout */
.app-mockup-body {
  padding: 28px;
  background-color: var(--background);
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
}

.mockup-sidebar {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.mockup-nav-item.active {
  background-color: var(--primary-surface);
  color: var(--primary-deep);
  font-weight: 600;
}

.mockup-nav-item svg {
  width: 18px;
  height: 18px;
}

.mockup-add-btn {
  margin-top: 10px;
  margin-bottom: 10px;
  background: var(--primary);
  color: var(--text-inverse);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mockup-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Balance Cards */
.balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mockup-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.balance-card-real {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.balance-card-receive {
  background-color: var(--receive-bg);
  border-color: var(--receive-border);
}

.balance-card-pay {
  background-color: var(--pay-bg);
  border-color: var(--pay-border);
}

.balance-card-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.balance-card-receive .balance-card-label {
  color: var(--receive-green);
}

.balance-card-pay .balance-card-label {
  color: var(--pay-red);
}

.balance-amount {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.balance-card-receive .balance-amount {
  color: var(--receive-green);
}

.balance-card-pay .balance-amount {
  color: var(--pay-red);
}

.balance-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.balance-card-receive .balance-icon {
  background: rgba(16, 185, 129, 0.18);
  color: var(--receive-green);
}

.balance-card-pay .balance-icon {
  background: rgba(239, 68, 68, 0.18);
  color: var(--pay-red);
}

/* Expense Transaction List */
.transaction-list-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.transaction-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.transaction-list-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.transaction-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
}

.transaction-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tx-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tx-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tx-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tx-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tx-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

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

.tx-subtitle .paid-by {
  color: var(--receive-green);
  font-weight: 600;
}

.tx-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tx-amount {
  font-size: 15px;
  font-weight: 700;
}

.tx-amount-green {
  color: var(--receive-green);
}

.tx-amount-red {
  color: var(--pay-red);
}

.tx-total {
  font-size: 11.5px;
  color: var(--text-light);
}

/* Floating UI Badges */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-lg);
  padding: 13px 20px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-card:hover {
  box-shadow: 0 24px 48px -10px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(255, 255, 255, 1) inset;
}

.float-left-top {
  top: 36px;
  left: -28px;
  animation: floatSlow 7s ease-in-out infinite alternate;
}

.float-right-bottom {
  bottom: 24px;
  right: -24px;
  animation: floatSlowReverse 8s ease-in-out infinite alternate;
}

@keyframes floatSlow {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  100% {
    transform: translateY(-10px) rotate(-0.5deg);
  }
}

@keyframes floatSlowReverse {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  100% {
    transform: translateY(10px) rotate(0.5deg);
  }
}

/* ==========================================================================
   3. PROBLEM SECTION & EXACT PAISE CALCULATOR
   ========================================================================== */

.problem-section {
  padding: 100px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

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

.problem-scenarios {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scenario-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: var(--background);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.scenario-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}

.scenario-card.active {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.12);
}

.scenario-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--pay-bg);
  color: var(--pay-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--pay-border);
}

.scenario-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.scenario-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Interactive Calculator */
.calc-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-top: 3.5px solid var(--primary);
  border-radius: var(--radius-2xl);
  padding: 34px;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.6);
  position: relative;
}

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

.calc-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.calc-input-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.calc-input-box {
  display: flex;
  align-items: center;
  background: #F8FAFC;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: all var(--transition-fast);
}

.calc-input-box:focus-within {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.16);
}

.calc-input-box span {
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 8px;
  display: flex;
  align-items: center;
}

.calc-input-box input {
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  background: transparent;
  outline: none;
}

.calc-result-box {
  background: linear-gradient(180deg, #F0FDF4 0%, #ECFDF5 100%);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.06);
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.calc-result-row:last-child {
  margin-bottom: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--primary-border);
  font-weight: 700;
  font-size: 16px;
  color: var(--primary-deep);
}

.paise-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.paise-split-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  padding: 11px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  font-size: 13.5px;
  transition: all var(--transition-fast);
}

.paise-split-row:hover {
  background: var(--primary-surface);
  border-color: var(--primary-border);
  transform: translateX(2px);
}

/* ==========================================================================
   4. VALUE STRIP (PRODUCT PILLARS)
   ========================================================================== */

.value-strip {
  padding: 48px 0;
  background-color: var(--background);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.value-strip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.value-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-surface);
  border: 1px solid var(--primary-border);
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.08);
}

.value-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.value-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   5. HOW IT WORKS (4 STEPS)
   ========================================================================== */

.how-it-works-section {
  padding: 100px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--background);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  position: relative;
  transition: all var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-card-hover);
  background: var(--surface);
}

.step-num-badge {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-deep);
  background: var(--primary-surface);
  border: 1px solid var(--primary-border);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.step-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   6. INTERACTIVE PRODUCT DEMO (THE 6-STEP JOURNEY)
   ========================================================================== */

.demo-section {
  padding: 100px 0;
  background-color: var(--background);
}

.demo-journey-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 0 auto 40px;
  flex-wrap: wrap;
  background: var(--surface-variant);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  padding: 6px;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) inset;
}

.demo-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.demo-tab-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.7);
}

.demo-tab-btn.active {
  background: var(--surface);
  color: var(--primary-deep);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
}

.demo-tab-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--card-border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.demo-tab-btn.active .demo-tab-num {
  background: var(--primary);
  color: white;
}

/* Interactive Screen Container */
.demo-viewport-wrapper {
  max-width: 920px;
  margin: 0 auto;
}

.demo-screen-box {
  display: none;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8);
  animation: fadeIn 300ms ease;
}

.demo-screen-box.active {
  display: block;
}

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

.demo-screen-body {
  padding: 36px 32px;
}

.demo-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.demo-nav-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--divider);
}

/* ==========================================================================
   7. CORE FEATURES (CATEGORIZED TABS)
   ========================================================================== */

.features-section {
  padding: 100px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.feature-nav-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.feature-tabs {
  display: inline-flex;
  gap: 6px;
  background: var(--surface-variant);
  padding: 5px;
  border-radius: var(--radius-full);
  border: 1px solid var(--card-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) inset;
}

.feature-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.feature-tab-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.7);
}

.feature-tab-btn.active {
  background: var(--surface);
  color: var(--primary-deep);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
}

.feature-panel {
  display: none;
}

.feature-panel.active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  animation: fadeIn 300ms ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary-border);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-surface);
  border: 1px solid var(--primary-border);
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-mini-ui {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
}

/* ==========================================================================
   8. DEBT SIMPLIFICATION SECTION
   ========================================================================== */

.debt-simplification-section {
  padding: 100px 0;
  background-color: var(--background);
}

.simplification-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  padding: 44px;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.06);
}

.simplification-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 36px;
}

.simplification-controls .segmented-control {
  display: inline-flex;
  align-items: center;
  background-color: var(--surface-variant);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  padding: 5px;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) inset;
  max-width: 100%;
  box-sizing: border-box;
}

.simplification-controls .segmented-btn {
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  background: transparent;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.simplification-controls .segmented-btn.active {
  background-color: var(--surface);
  color: var(--primary-deep);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.85);
}

.simplification-controls .segmented-btn:hover:not(.active) {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.7);
}

.algo-diagram-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.diagram-box {
  background: #FAFCFE;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.diagram-box.highlight {
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.12), 0 0 0 1px rgba(16, 185, 129, 0.2);
}

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

.tx-flow-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tx-flow-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--card-border);
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.tx-flow-item:hover {
  border-color: var(--primary-border);
  transform: translateX(2px);
}

.tx-flow-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 600;
}

.tx-flow-amt {
  font-weight: 700;
  color: var(--primary-deep);
  font-family: var(--font-mono);
}

.algo-stats-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: #F8FAFC;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 24px 32px;
  text-align: center;
}

.algo-stat-val {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.02em;
}

.algo-stat-lbl {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   9. OFFLINE-FIRST SECTION
   ========================================================================== */

.offline-section {
  padding: 100px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

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

.offline-demo-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  padding: 36px;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(226, 232, 240, 0.8);
}

.offline-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: #F8FAFC;
  border: 1px solid var(--card-border);
  margin-bottom: 24px;
}

.sync-pipeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sync-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: #FFFFFF;
  transition: all var(--transition-normal);
}

.sync-step.step-active {
  border-color: var(--primary);
  background: var(--primary-surface);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.1);
}

.sync-step-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.step-active .sync-step-icon {
  background: var(--primary);
  color: white;
}

/* ==========================================================================
   10. UPI SETTLEMENT SECTION
   ========================================================================== */

.upi-section {
  padding: 100px 0;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}

.upi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.upi-flow-preview {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.06);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.upi-flow-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.upi-recipient-card {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.upi-recipient-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.upi-app-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.upi-pill {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  background: #F8FAFC;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.upi-pill:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
  transform: translateY(-1px);
}

.upi-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--primary-surface);
  border: 1px solid var(--primary-border);
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--primary-deep);
  line-height: 1.5;
  box-sizing: border-box;
}

.upi-intent-preview {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

#upi-intent-code,
.upi-intent-code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upi-qr-action-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.upi-qr-box {
  box-sizing: border-box;
}

.upi-qr-box svg {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   11. GROUPS & SOCIAL COLLABORATION
   ========================================================================== */

.groups-section {
  padding: 100px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.group-showcase-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.06);
}

.group-banner {
  background: linear-gradient(135deg, #047857 0%, #10B981 100%);
  color: white;
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.group-banner-info h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}

.group-banner-info p {
  font-size: 15px;
  opacity: 0.9;
}

.group-invite-box {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.group-invite-code {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.group-members-grid {
  padding: 32px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--card-border);
}

.member-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: var(--background);
}

.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-surface);
  color: var(--primary-deep);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   12. PERSONAL EXPENSES & MONTHLY INSIGHTS
   ========================================================================== */

.insights-section {
  padding: 100px 0;
  background-color: var(--background);
}

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

.insights-card {
  background: var(--background);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  padding: 32px;
}

.insights-month-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.category-bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.category-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.progress-track {
  height: 8px;
  background: var(--card-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   13. PRIVACY & SECURITY
   ========================================================================== */

.privacy-section {
  padding: 100px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

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

.privacy-card {
  background: var(--background);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all var(--transition-normal);
}

.privacy-card:hover {
  background: var(--surface);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.privacy-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--receive-green);
  background: var(--receive-bg);
  border: 1px solid var(--receive-border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  width: fit-content;
}

/* ==========================================================================
   14. WHY PERSPLIT (COMPARISON)
   ========================================================================== */

/* ==========================================================================
   14. WHY PERSPLIT (COMPARISON MATRIX)
   ========================================================================== */

.comparison-section {
  padding: 100px 0;
  background-color: var(--background);
}

.comparison-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.comparison-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.comparison-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.comparison-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
  background: var(--primary-surface);
}

.comparison-filter-btn.active {
  background: var(--primary-surface);
  border-color: var(--primary);
  color: var(--primary-deep);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

.comparison-filter-btn .filter-count {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
}

.comparison-filter-btn.active .filter-count {
  background: #10B981;
  color: #FFFFFF;
}

.comparison-scroll-hint {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  transition: opacity 0.3s ease;
}

.comparison-table-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  background: #FFFFFF;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08);
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--divider);
  font-size: 13.5px;
  vertical-align: middle;
  transition: background-color 0.15s ease;
}

.comparison-table thead th {
  background: #F8FAFC;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-subtle);
}

.col-head-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.head-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0F172A;
}

.head-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.platform-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: #F1F5F9;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Capability Column (Column 1) */
.col-capability {
  width: 28%;
  min-width: 240px;
}

.capability-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cap-icon-box {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  background: #F1F5F9;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.cap-name {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
}

.cap-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 3px;
}

/* PerSplit Featured Column (Column 5) */
.comparison-table th.col-persplit {
  background: linear-gradient(180deg, #ECFDF5 0%, #F0FDF4 100%);
  border-left: 2px solid #10B981;
  border-right: 2px solid #10B981;
  border-top: 3px solid #10B981;
  width: 26%;
  min-width: 220px;
  position: relative;
}

.col-head-persplit {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.persplit-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #10B981;
  color: #FFFFFF;
  padding: 2.5px 8px;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: 4px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.persplit-head-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.persplit-mini-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10B981;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(16, 185, 129, 0.3);
}

.head-title-persplit {
  font-size: 16px;
  font-weight: 800;
  color: #064E3B;
  letter-spacing: -0.01em;
}

.head-sub-persplit {
  font-size: 11.5px;
  font-weight: 600;
  color: #047857;
}

.comparison-table td.col-persplit {
  background: #FAFDFB;
  border-left: 2px solid #10B981;
  border-right: 2px solid #10B981;
}

/* Hover States */
.comparison-table tbody tr {
  transition: background-color var(--transition-fast);
}

.comparison-table tbody tr:hover td {
  background-color: #F8FAFC;
}

.comparison-table tbody tr:hover td.col-persplit {
  background-color: #ECFDF5;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* Column Hover Indicator */
.col-hover {
  background-color: #F1F5F9 !important;
}

td.col-persplit.col-hover {
  background-color: #E6FBF0 !important;
}

/* Status Badges */
.tbl-status {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.35;
  font-size: 13px;
}

.tbl-status-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.tbl-status-no {
  color: #64748B;
}

.tbl-status-no .tbl-status-icon {
  background: #F1F5F9;
  color: #94A3B8;
}

.tbl-status-warn {
  color: #92400E;
}

.tbl-status-warn .tbl-status-icon {
  background: #FEF3C7;
  color: #D97706;
}

.tbl-status-yes {
  color: #065F46;
}

.tbl-status-yes .tbl-status-icon {
  background: #D1FAE5;
  color: #047857;
}

.tbl-status-neutral {
  color: var(--text-muted);
  font-size: 12.5px;
  font-style: italic;
}

/* Bottom Summary Highlights Strip */
.comparison-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 18px 24px;
  background: #F8FAFC;
  border-top: 1px solid var(--border-subtle);
}

.summary-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-metric-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.summary-metric-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
}

.summary-metric-lbl {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.2;
}

/* ==========================================================================
   15. USE CASES
   ========================================================================== */

.use-cases-section {
  padding: 100px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.use-case-card {
  background: var(--background);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition-normal);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.use-case-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-card-hover);
  background: var(--surface);
}

.use-case-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-surface);
  border: 1px solid var(--primary-border);
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.use-case-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.use-case-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   16. ROADMAP & PLANNED CAPABILITIES
   ========================================================================== */

.roadmap-section {
  padding: 100px 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--card-border);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.roadmap-card {
  background: var(--background);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.planned-tag {
  font-size: 11px;
  font-weight: 700;
  color: #6366F1;
  background: #EEF2FF;
  border: 1px solid #C7D2FE;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.roadmap-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.roadmap-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   17. CTA BANNER
   ========================================================================== */

.cta-section {
  padding: 100px 0;
  background-color: var(--background);
}

.cta-banner {
  background: linear-gradient(135deg, #047857 0%, #059669 40%, #10B981 100%);
  border-radius: var(--radius-2xl);
  padding: 64px 48px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(4, 120, 87, 0.25);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.15), transparent 45%);
  pointer-events: none;
}

.cta-banner>* {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: clamp(16px, 1.8vw, 19px);
  opacity: 0.9;
  max-width: 620px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-white {
  background: white;
  color: #047857;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn-white:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-white-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-white-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
}

.cta-prelaunch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: white;
}

.cta-launching-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-md);
  color: white;
  font-size: 15px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   18. FAQ ACCORDION
   ========================================================================== */

.faq-section {
  padding: 100px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--card-border);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--background);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.open {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.faq-trigger:hover {
  color: var(--primary-deep);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}

.faq-body {
  padding: 0 24px 20px 24px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ==========================================================================
   19. FOOTER
   ========================================================================== */

.footer {
  background-color: var(--background);
  border-top: 1px solid var(--card-border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

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

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--primary-deep);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   20. INTERACTIVE ENHANCEMENTS & MICRO-INTERACTIONS
   ========================================================================== */

/* Reading / Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #10B981 0%, #059669 100%);
  z-index: 1200;
  pointer-events: none;
  transition: width 0.08s ease-out;
}

/* Floating Back-to-Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0F172A;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 990;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #10B981;
  color: #FFFFFF;
  border-color: #10B981;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.back-to-top:active {
  transform: translateY(0);
}

/* Hero Mockup View Panels & Tabs */
.mockup-sidebar-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  outline: none;
}

.mockup-sidebar-btn:hover {
  background-color: #F8FAFC;
  color: var(--text-primary);
}

.mockup-sidebar-btn.active {
  background-color: var(--primary-surface);
  color: var(--primary-deep);
  font-weight: 700;
}

.mockup-view-panel {
  display: none;
  animation: panelFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-view-panel.active {
  display: block;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Mockup Transaction Filter */
.mockup-tx-filter-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.mockup-tx-filter-btn:hover {
  border-color: var(--primary-border);
  color: var(--text-primary);
}

.mockup-tx-filter-btn.active {
  background: var(--primary-surface);
  border-color: var(--primary-border);
  color: var(--primary-deep);
  font-weight: 700;
}

/* Calculator Scenario Presets */
.calc-presets-wrap {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.calc-presets-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}

.calc-preset-chip {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.calc-preset-chip:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
  background: var(--primary-surface);
  transform: translateY(-1px);
}

.calc-preset-chip.active {
  background: var(--primary-surface);
  border-color: var(--primary);
  color: var(--primary-deep);
  box-shadow: 0 0 0 1px var(--primary);
}

/* Segmented Buttons in Demo Tour */
.segmented-control button.segmented-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

/* Copy UPI ID / Payload Button */
.btn-copy-upi {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.btn-copy-upi:hover {
  background: #E2E8F0;
  color: var(--text-primary);
}

.btn-copy-upi.copied {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #047857;
}

/* UPI Interactive Apps in Demo & Section 10 */
button.upi-pill {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

button.upi-pill:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
  background: var(--primary-surface);
}

button.upi-pill.active {
  background: var(--primary-surface);
  border-color: var(--primary);
  color: var(--primary-deep);
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--primary);
}

/* Offline Queue Live Preview */
.offline-queued-item {
  background: #FFFFFF;
  border: 1px dashed #F59E0B;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  animation: slideInDown 0.2s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Interactive Category Breakdown in Insights */
.category-bar-row[role="button"] {
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  margin: -4px -10px 8px -10px;
  transition: background 0.15s ease;
}

.category-bar-row[role="button"]:hover,
.category-bar-row[role="button"]:focus-visible {
  background: #F8FAFC;
  outline: none;
}

.category-bar-row[role="button"].active {
  background: #FAFDFB;
  box-shadow: inset 0 0 0 1px #A7F3D0;
}

/* FAQ Instant Search */
.faq-search-wrap {
  margin-bottom: 24px;
}

.faq-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.faq-search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.faq-search-input {
  width: 100%;
  padding: 12px 40px 12px 42px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  outline: none;
}

.faq-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.faq-search-clear {
  position: absolute;
  right: 12px;
  background: #F1F5F9;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.faq-search-clear:hover {
  background: #E2E8F0;
  color: var(--text-primary);
}

.faq-search-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  padding-left: 4px;
}

.faq-empty-state {
  text-align: center;
  padding: 40px 20px;
  background: #FFFFFF;
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-lg);
}

.faq-item.highlight {
  border-color: #A7F3D0;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

/* ==========================================================================
   VISUAL STORYTELLING & INTERACTIVE SIMULATION ENHANCEMENTS
   ========================================================================== */

/* 1. Hero 3D Perspective & Live Simulation */
.hero-visual-wrapper {
  perspective: 1200px;
}

.hero-device-frame {
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}

.mockup-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-surface);
  color: var(--primary-deep);
  border: 1px solid var(--primary-border);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mockup-action-chip:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}

.mockup-action-chip:active {
  transform: translateY(1px) scale(0.98);
}

@keyframes slideInTxRow {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
    background: #D1FAE5;
  }

  50% {
    background: #ECFDF5;
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    background: #FFFFFF;
  }
}

.tx-row-simulated {
  animation: slideInTxRow 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border: 1px solid #10B981 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.balance-amount-highlight {
  animation: balancePop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes balancePop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
    color: #047857;
  }

  100% {
    transform: scale(1);
  }
}

/* 2. Visual Math Discrepancy Card */
.math-discrepancy-card {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.math-discrepancy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.math-tag-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.math-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.math-box {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.math-box-flawed {
  background: #FEF2F2;
  border-color: #FECACA;
}

.math-box-persplit {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.math-box-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.math-equation {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.math-calc-line {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.math-lost-val {
  color: #DC2626;
  font-family: var(--font-mono);
  text-decoration: underline wavy #EF4444;
}

.math-exact-val {
  color: #047857;
  font-family: var(--font-mono);
}

.math-alert-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  margin-top: 4px;
  width: fit-content;
}

.math-alert-pill-red {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
}

.math-alert-pill-green {
  background: #D1FAE5;
  color: #047857;
  border: 1px solid #6EE7B7;
}

/* 3. Animated Connected Stepper Beam */
.steps-flow-line {
  position: relative;
  margin: 0 auto 36px;
  max-width: 900px;
}

.step-flow-track {
  position: absolute;
  top: 15px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  z-index: 1;
  overflow: hidden;
}

.step-flow-glow-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #10B981, transparent);
  animation: laserStream 3s ease-in-out infinite;
}

@keyframes laserStream {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(350%);
  }
}

.step-flow-nodes {
  position: relative;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.step-flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.step-flow-ring {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #CBD5E1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.step-flow-node.active .step-flow-ring,
.step-flow-node:hover .step-flow-ring {
  border-color: #10B981;
  background: #ECFDF5;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  transform: scale(1.15);
}

.step-flow-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.step-flow-node.active .step-flow-badge,
.step-flow-node:hover .step-flow-badge {
  color: #047857;
  border-color: #A7F3D0;
  background: #ECFDF5;
}

/* 4. Auto-Play Tour Controls & Pulse Rings */
.demo-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.demo-autoplay-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.demo-autoplay-pill:hover {
  border-color: #10B981;
  color: #047857;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.demo-autoplay-pill.active {
  border-color: #10B981;
  background: #ECFDF5;
  color: #047857;
}

.autoplay-indicator-icon {
  display: flex;
  align-items: center;
  color: #10B981;
}

.autoplay-timer-track {
  width: 36px;
  height: 4px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-left: 4px;
}

.autoplay-timer-fill {
  width: 0%;
  height: 100%;
  background: #10B981;
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}

/* Step 6 Animated Verified Checkmark */
.verified-anim-container {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verified-icon-circle {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #10B981;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.animated-check-svg polyline {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawCheckStroke 0.6s ease forwards 0.2s;
}

@keyframes drawCheckStroke {
  to {
    stroke-dashoffset: 0;
  }
}

.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid #10B981;
  opacity: 0;
  animation: pulseExpandWave 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.pulse-ring-2 {
  animation-delay: 1.2s;
}

@keyframes pulseExpandWave {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }

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

/* 5. Debt Simplification Interactive SVG Node Graph */
.simplification-graph-wrapper {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.graph-top-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.graph-status-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.graph-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  transition: all 0.2s ease;
}

.graph-status-dot.danger {
  background: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.graph-status-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.graph-svg-canvas-container {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  overflow: visible;
}

.graph-svg-canvas {
  width: 100%;
  height: auto;
  display: block;
}

.flow-path-line {
  transition: opacity 0.3s ease, stroke-width 0.2s ease;
  animation: flowDashAnim 1.8s linear infinite;
}

@keyframes flowDashAnim {
  from {
    stroke-dashoffset: 20;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.graph-member-node {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* .graph-member-node:hover {
  transform: scale(1.08);
} */

.graph-legend-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
  margin-top: 12px;
  flex-wrap: wrap;
}

.graph-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.legend-color-box {
  width: 14px;
  height: 4px;
  border-radius: 2px;
}

.legend-color-box.bg-green {
  background: #10B981;
}

.legend-color-box.bg-amber {
  background: #F59E0B;
}

/* 6. Visual Multi-Node Offline Pipeline */
.offline-pipeline-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAFDFB;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  z-index: 2;
  transition: all 0.25s ease;
}

.pipe-node-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.pipeline-node.node-active .pipe-node-icon {
  border-color: #10B981;
  color: #047857;
  background: #ECFDF5;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.pipeline-node.node-offline .pipe-node-icon {
  border-color: #F59E0B;
  color: #B45309;
  background: #FFFBEB;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.pipe-node-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.pipe-node-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: #F1F5F9;
  color: var(--text-muted);
}

.pipe-node-pill.pill-active {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.pipe-node-pill.pill-warning {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FCD34D;
}

.pipeline-beam {
  flex: 1;
  height: 3px;
  background: #E2E8F0;
  margin: 0 10px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-radius: var(--radius-full);
}

.pipeline-beam .beam-particle {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #10B981, transparent);
  animation: beamStream 1.8s linear infinite;
}

@keyframes beamStream {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(250%);
  }
}

.pipeline-beam.beam-cut {
  background: #FED7AA;
  border-top: 2px dashed #F97316;
}

.pipeline-beam.beam-cut .beam-particle {
  display: none;
}

/* 7. Interactive 3-Stage UPI Settlement Visualizer & Right Column */
.upi-content-col {
  min-width: 0;
  width: 100%;
}

.upi-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.upi-step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.upi-step-item > div:last-child {
  min-width: 0;
  flex: 1;
}

.upi-step-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.3;
}

.upi-step-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.upi-visual-flow-card {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  width: 100%;
  box-sizing: border-box;
}

.upi-flow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.upi-stages-grid {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.upi-stage-card {
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.upi-stage-card.active {
  background: #ECFDF5;
  border-color: #10B981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
  transform: translateY(-2px);
}

.stage-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.stage-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.upi-stage-card.active .stage-icon-circle {
  background: #10B981;
  color: #FFFFFF;
}

.stage-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.stage-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
  text-align: center;
}

.stage-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #E2E8F0;
  color: var(--text-muted);
  margin-top: auto;
  flex-shrink: 0;
}

.stage-pill.pill-ready,
.stage-pill.pill-success {
  background: #10B981;
  color: #FFFFFF;
}

.stage-arrow-divider {
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
}

.upi-sim-log-bar {
  margin-top: 14px;
  padding: 10px 14px;
  background: #0F172A;
  color: #34D399;
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: var(--radius-md);
  line-height: 1.45;
  transition: all 0.2s ease;
  overflow-wrap: break-word;
  word-break: break-word;
}

.upi-sim-log-bar span {
  color: #6EE7B7;
}

/* 8. Interactive SVG Donut Chart */
.insights-donut-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px 0 20px;
  padding: 16px;
  background: #FAFDFB;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}

.donut-chart-container {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insights-donut-svg {
  transform: rotate(-90deg);
  overflow: visible;
}

.donut-segment {
  cursor: pointer;
  transition: stroke-width 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}

.donut-segment:hover,
.donut-segment.active {
  stroke-width: 25;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.15));
}

.donut-center-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}

.donut-center-amt {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  font-family: var(--font-mono);
  line-height: 1.2;
  transition: all 0.2s ease;
}

.donut-center-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.2;
}

.donut-center-pct {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 2px;
}

.donut-mini-legend {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.legend-pill:hover,
.legend-pill.active {
  background: var(--primary-surface);
  border-color: var(--primary-border);
  color: var(--primary-deep);
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS & MOBILE OPTIMIZATIONS
   ========================================================================== */

/* Prevent accidental horizontal scroll on all viewports */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

img,
svg {
  max-width: 100%;
}

/* 1. Large Tablets & Compact Desktops (<= 1080px) */
@media (max-width: 1080px) {
  .floating-card {
    display: none;
  }

  .upi-grid {
    gap: 32px;
  }

  .upi-flow-preview {
    padding: 28px 22px;
  }
}

/* 2. Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  :root {
    --nav-height: 68px;
  }

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

  .mobile-toggle {
    display: flex;
  }

  /* Transform Mockup Sidebar to a sleek horizontal scrollable tab rail */
  .app-mockup-body {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 18px;
  }

  .mockup-sidebar {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 10px;
    gap: 6px;
    border-radius: var(--radius-lg);
    -webkit-overflow-scrolling: touch;
  }

  .mockup-sidebar > div:first-child {
    display: none;
  }

  .mockup-sidebar .mockup-nav-item,
  .mockup-sidebar-btn {
    white-space: nowrap;
    padding: 7px 14px;
    font-size: 12.5px;
    border-radius: var(--radius-full);
    background: #F8FAFC;
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
  }

  .mockup-sidebar .mockup-nav-item.active,
  .mockup-sidebar-btn.active {
    background: var(--primary-surface);
    border-color: var(--primary);
    color: var(--primary-deep);
  }

  .mockup-sidebar .mockup-add-btn {
    display: none;
  }

  .steps-flow-line {
    display: none;
  }

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

  .upi-section {
    padding: 72px 0;
  }

  .problem-grid,
  .offline-grid,
  .upi-grid,
  .insights-grid,
  .algo-diagram-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .simplification-card {
    padding: 32px 24px;
  }

  .simplification-controls {
    margin-bottom: 28px;
  }

  .simplification-controls .segmented-control {
    max-width: 100%;
    padding: 4px;
    gap: 3px;
  }

  .simplification-controls .segmented-btn {
    padding: 8px 16px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .upi-content-col {
    order: -1;
    width: 100%;
    min-width: 0;
  }

  .upi-flow-preview {
    padding: 28px 24px;
    border-radius: var(--radius-xl);
  }

  .upi-stages-grid {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
  }

  .stage-arrow-divider {
    transform: none;
  }

  .feature-panel.active {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .steps-grid,
  .use-cases-grid,
  .roadmap-grid,
  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .group-members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* 3. Small Tablets & Large Smartphones (<= 768px) */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  /* Compact section vertical rhythm */
  .problem-section,
  .how-it-works-section,
  .demo-section,
  .features-section,
  .debt-simplification-section,
  .offline-section,
  .upi-section,
  .groups-section,
  .insights-section,
  .privacy-section,
  .comparison-section,
  .use-cases-section,
  .roadmap-section,
  .faq-section {
    padding: 56px 0;
  }

  .container,
  .container-narrow {
    padding: 0 20px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .value-strip-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-panel.active {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps-grid,
  .use-cases-grid,
  .roadmap-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .demo-meta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Smooth horizontal scrolling tabs on mobile */
  .feature-nav-wrap {
    justify-content: flex-start;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .feature-tabs {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .feature-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 13px;
  }

  .demo-journey-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    border-radius: var(--radius-lg);
    -webkit-overflow-scrolling: touch;
    padding: 6px;
    margin-bottom: 24px;
  }

  .demo-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
  }

  .balance-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .group-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 20px;
  }

  .group-invite-box {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .group-members-grid {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  /* Table horizontal scroll protection & sticky capability column */
  .comparison-scroll-hint {
    display: inline-flex;
  }

  .comparison-table {
    min-width: 740px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 14px;
    font-size: 13px;
  }

  .col-capability {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #FFFFFF;
    box-shadow: 4px 0 10px -2px rgba(0, 0, 0, 0.05);
  }

  thead th.col-capability {
    z-index: 3;
    background: #F8FAFC;
  }

  .comparison-summary-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 16px 18px;
  }

  .algo-stats-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cta-banner {
    padding: 44px 24px;
  }

  /* Responsive Visual Storytelling Enhancements */
  .math-comparison-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .demo-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-autoplay-pill {
    justify-content: center;
  }

  .offline-pipeline-diagram {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .pipeline-beam {
    display: none;
  }

  /* Debt Simplification Toggle & Card */
  .simplification-card {
    padding: 26px 18px;
    border-radius: var(--radius-xl);
  }

  .simplification-controls {
    margin-bottom: 24px;
    width: 100%;
  }

  .simplification-controls .segmented-control {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 6px;
    gap: 6px;
    border-radius: var(--radius-xl);
  }

  .simplification-controls .segmented-btn {
    width: 100%;
    padding: 11px 16px;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    white-space: normal;
  }

  .upi-grid {
    gap: 32px;
  }

  .upi-flow-preview {
    padding: 24px 20px;
    border-radius: var(--radius-xl);
  }

  .upi-content-col {
    order: -1;
    width: 100%;
    min-width: 0;
  }

  .upi-content-col .section-title {
    font-size: clamp(24px, 4.2vw, 28px);
  }

  .upi-content-col .section-desc {
    font-size: 14.5px;
    margin-bottom: 22px !important;
  }

  .upi-stages-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .upi-stage-card {
    width: 100%;
    flex: none;
    box-sizing: border-box;
    padding: 14px 16px;
  }

  .stage-arrow-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 22px;
    margin: -2px 0;
    color: #94A3B8;
    transform: rotate(90deg);
  }
}

/* 4. Smartphones & Compact Mobile Devices (<= 480px) */
@media (max-width: 480px) {
  :root {
    --nav-height: 60px;
  }

  .problem-section,
  .how-it-works-section,
  .demo-section,
  .features-section,
  .debt-simplification-section,
  .offline-section,
  .upi-section,
  .groups-section,
  .insights-section,
  .privacy-section,
  .comparison-section,
  .use-cases-section,
  .roadmap-section,
  .faq-section {
    padding: 44px 0;
  }

  .container,
  .container-narrow {
    padding: 0 16px;
  }

  .section-title {
    font-size: clamp(24px, 6.5vw, 28px);
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .section-desc {
    font-size: 14.5px;
    line-height: 1.55;
  }

  .hero-headline {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  .hero-badge {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    font-size: 12px;
    padding: 6px 12px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn,
  .hero-launch-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .brand-logo img {
    height: 30px;
  }

  .nav-launch-badge {
    padding: 4px 10px;
    font-size: 11.5px;
  }

  .mobile-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .mobile-menu {
    padding: 16px 16px 24px;
  }

  .mobile-menu a {
    font-size: 14px;
    padding: 10px 14px;
  }

  /* Hero Mockup Frame & Bar */
  .app-window-bar {
    padding: 10px 12px;
    gap: 8px;
  }

  .window-dots {
    flex-shrink: 0;
    gap: 5px;
  }

  .window-dot {
    width: 9px;
    height: 9px;
  }

  .window-title-chip {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-size: 11px;
  }

  .sync-status-pill {
    flex-shrink: 0;
    font-size: 11px;
    padding: 2px 7px;
  }

  .app-mockup-body {
    padding: 16px 12px;
  }

  /* Hero Mockup Header & Controls */
  #mockup-panel-dashboard > div:first-child {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px;
  }

  #mockup-panel-dashboard > div:first-child > div:last-child {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mockup-action-chip {
    flex: 1;
    justify-content: center;
    font-size: 11px;
    padding: 5px 10px;
  }

  /* Hero Mockup Transaction Rows */
  .tx-left {
    min-width: 0;
    flex: 1;
    gap: 10px;
  }

  .tx-icon-box {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .tx-icon-box svg {
    width: 17px;
    height: 17px;
  }

  .tx-info {
    min-width: 0;
    flex: 1;
  }

  .tx-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
  }

  .tx-subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
  }

  .tx-right {
    flex-shrink: 0;
  }

  .tx-amount {
    font-size: 13.5px;
  }

  .tx-total {
    font-size: 10.5px;
  }

  /* Hero Mockup Groups View */
  #mockup-panel-groups .app-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  #mockup-panel-groups .app-card > div:last-child {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  /* Hero Mockup Settle View */
  #mockup-panel-settle .app-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  #mockup-panel-settle .app-card > div:last-child {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Live Paise Calculator */
  .calc-card {
    padding: 20px 14px;
    border-radius: var(--radius-lg);
  }

  .calc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .calc-inputs {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }

  .calc-presets-wrap {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 14px;
    width: 100%;
  }

  .calc-preset-chip {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 11.5px;
    padding: 5px 10px;
  }

  /* Demo / Product Tour */
  .demo-screen-body {
    padding: 20px 14px;
  }

  .demo-meta-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mockup-stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .demo-nav-controls {
    flex-direction: column-reverse;
    gap: 10px;
    align-items: stretch;
  }

  .demo-nav-controls .btn {
    width: 100%;
    justify-content: center;
  }

  .segmented-control {
    width: 100%;
    display: flex;
  }

  .segmented-btn {
    flex: 1;
    padding: 7px 6px;
    font-size: 11.5px;
    text-align: center;
    justify-content: center;
  }

  .paise-split-row {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* Debt Simplification */
  .simplification-card {
    padding: 20px 14px;
    border-radius: var(--radius-lg);
  }

  .simplification-controls {
    margin-bottom: 20px;
    width: 100%;
  }

  .simplification-controls .segmented-control {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    gap: 5px;
    padding: 5px;
    border-radius: var(--radius-lg);
  }

  .simplification-controls .segmented-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.35;
    border-radius: var(--radius-md);
    white-space: normal;
  }

  .graph-top-status-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .diagram-box {
    padding: 18px 14px;
    border-radius: var(--radius-lg);
  }

  .tx-flow-item {
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    font-size: 13px;
  }

  /* Offline Synchronization */
  .offline-demo-card {
    padding: 20px 14px;
    border-radius: var(--radius-lg);
  }

  .offline-toggle-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .offline-toggle-bar > div:last-child {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .offline-toggle-bar .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .offline-pipeline-diagram {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 14px 10px;
  }

  .pipeline-node {
    width: 100%;
  }

  .sync-step {
    padding: 12px;
    gap: 12px;
  }

  /* UPI Settlement */
  .upi-grid {
    gap: 24px;
  }

  .upi-flow-preview {
    padding: 18px 14px;
    border-radius: var(--radius-lg);
    gap: 16px;
  }

  .upi-flow-header-row span:first-child {
    font-size: 15px !important;
  }

  .upi-recipient-card {
    padding: 14px 12px !important;
  }

  .upi-recipient-amount-row span:first-child {
    font-size: 12.5px !important;
  }

  .upi-recipient-amount-row span:last-child {
    font-size: 18px !important;
  }

  .upi-disclaimer {
    padding: 12px 12px;
    font-size: 12px;
    line-height: 1.45;
    gap: 10px;
  }

  .upi-app-badges {
    gap: 6px;
  }

  .upi-pill {
    padding: 5px 10px;
    font-size: 11.5px;
  }

  .upi-intent-preview {
    padding: 10px 12px !important;
    min-width: 0;
    max-width: 100%;
  }

  #upi-intent-code,
  .upi-intent-code {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10.5px !important;
  }

  #upi-copy-intent-btn {
    padding: 4px 8px !important;
    font-size: 10.5px !important;
  }

  .upi-qr-action-row {
    margin-top: 10px;
  }

  #upi-qr-toggle-btn {
    padding: 9px 12px;
    font-size: 12.5px;
  }

  .upi-qr-box {
    padding: 12px 10px !important;
  }

  .upi-qr-box svg {
    width: 120px !important;
    height: 120px !important;
  }

  /* UPI Right Column Responsive Optimizations */
  .upi-content-col {
    order: -1;
    width: 100%;
    min-width: 0;
  }

  .upi-content-col .section-title {
    font-size: clamp(22px, 5.8vw, 26px);
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .upi-content-col .section-desc {
    font-size: 13.5px !important;
    line-height: 1.5;
    margin: 0 0 20px 0 !important;
  }

  .upi-steps-list {
    gap: 12px;
  }

  .upi-step-item {
    gap: 12px;
    align-items: flex-start;
  }

  .upi-step-item span {
    width: 26px !important;
    height: 26px !important;
    font-size: 12px !important;
    flex-shrink: 0;
  }

  .upi-step-item h4 {
    font-size: 14px;
    margin-bottom: 2px;
    line-height: 1.35;
  }

  .upi-step-item p {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .upi-visual-flow-card {
    margin-top: 20px;
    padding: 16px 14px;
    border-radius: var(--radius-lg);
  }

  .upi-flow-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
  }

  .upi-flow-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .upi-flow-header span {
    font-size: 13px;
    line-height: 1.35;
  }

  #upi-simulate-flow-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 9px 14px;
    font-size: 12px;
  }

  .upi-stages-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .upi-stage-card {
    width: 100%;
    flex: none;
    padding: 12px 14px;
    gap: 5px;
    box-sizing: border-box;
  }

  .upi-stage-card .stage-icon-circle {
    width: 34px;
    height: 34px;
  }

  .upi-stage-card .stage-icon-circle svg {
    width: 17px;
    height: 17px;
  }

  .upi-stage-card .stage-name {
    font-size: 13px;
  }

  .upi-stage-card .stage-sub {
    font-size: 11.5px;
    line-height: 1.35;
    max-width: 320px;
    margin: 0 auto;
  }

  .upi-stage-card .stage-pill {
    font-size: 10px;
    padding: 2px 8px;
    margin-top: 3px;
  }

  .stage-arrow-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 20px;
    color: #94A3B8;
    transform: rotate(90deg);
    margin: -2px 0;
  }

  .upi-sim-log-bar {
    margin-top: 12px;
    padding: 10px 12px;
    font-size: 11.5px;
    line-height: 1.45;
  }

  /* Groups & Collaboration */
  .group-banner {
    padding: 20px 14px;
  }

  .group-banner-info h3 {
    font-size: 22px;
  }

  .group-invite-box {
    width: 100%;
    padding: 10px 12px;
  }

  .group-invite-code {
    font-size: 18px;
  }

  .group-members-grid {
    padding: 16px 14px;
    gap: 10px;
  }

  .member-chip {
    padding: 10px 12px;
    gap: 10px;
    font-size: 13px;
  }

  /* Monthly Insights */
  .insights-card {
    padding: 20px 14px;
    border-radius: var(--radius-lg);
  }

  .insights-month-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
  }

  .insights-month-header > div:last-child {
    text-align: left;
  }

  .category-bar-row[role="button"] {
    margin: 0 0 8px 0;
    padding: 8px 8px;
  }

  #insight-detail-chip {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* Comparison Table */
  .comparison-table {
    min-width: 620px;
  }

  .col-capability {
    min-width: 150px;
    max-width: 170px;
    padding: 10px 8px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 8px;
    font-size: 12px;
  }

  .capability-item {
    gap: 8px;
  }

  .cap-icon-box {
    width: 24px;
    height: 24px;
  }

  .cap-icon-box svg {
    width: 13px;
    height: 13px;
  }

  .cap-name {
    font-size: 12px;
    line-height: 1.3;
  }

  .cap-desc {
    font-size: 10.5px;
    line-height: 1.3;
  }

  .tbl-status-text {
    font-size: 11px;
    line-height: 1.35;
  }

  .comparison-summary-strip {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  /* FAQ */
  .faq-search-input {
    font-size: 13px;
    padding: 10px 36px 10px 38px;
  }

  .faq-trigger {
    padding: 15px 14px;
    font-size: 14.5px;
    gap: 10px;
  }

  .faq-body {
    padding: 0 14px 16px 14px;
    font-size: 13.5px;
  }

  /* CTA Section */
  .cta-banner {
    padding: 36px 16px;
    border-radius: var(--radius-xl);
  }

  .cta-banner h2,
  .cta-title {
    font-size: 24px;
    line-height: 1.2;
  }

  .cta-banner p,
  .cta-desc {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .cta-actions .btn,
  .cta-launching-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .cta-launching-pill {
    font-size: 12px;
    padding: 8px 14px;
  }

  /* Footer */
  .footer {
    padding: 48px 0 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

/* 5. Ultra-Compact Screens (<= 360px down to 320px) */
@media (max-width: 360px) {
  .container,
  .container-narrow {
    padding: 0 12px;
  }

  .brand-logo img {
    height: 24px;
  }

  .logo-text {
    font-size: 17px;
  }

  .nav-launch-badge {
    padding: 3px 6px;
    font-size: 10px;
  }

  .nav-actions {
    gap: 6px;
  }

  .mobile-toggle {
    width: 36px;
    height: 36px;
  }

  .hero-headline {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 13.5px;
  }

  .hero-badge {
    font-size: 10.5px;
    padding: 4px 8px;
  }

  .app-window-bar {
    padding: 8px 10px;
  }

  .window-title-chip {
    font-size: 10px;
  }

  .sync-status-pill {
    font-size: 10px;
    padding: 2px 5px;
  }

  .calc-card {
    padding: 16px 10px;
  }

  .calc-input-box {
    padding: 8px 10px;
  }

  .calc-input-box input {
    font-size: 15px;
  }

  .demo-screen-body {
    padding: 16px 10px;
  }

  .demo-screen-header {
    padding: 12px 10px;
  }

  .demo-screen-header span {
    font-size: 13px;
  }

  .segmented-btn {
    font-size: 10.5px;
    padding: 6px 3px;
  }

  /* Debt Simplification Toggle & Card (<= 360px) */
  .simplification-card {
    padding: 16px 10px;
    border-radius: var(--radius-md);
  }

  .simplification-controls {
    margin-bottom: 16px;
    width: 100%;
  }

  .simplification-controls .segmented-control {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 4px;
    gap: 4px;
    border-radius: var(--radius-md);
  }

  .simplification-controls .segmented-btn {
    width: 100%;
    padding: 8px 8px;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    white-space: normal;
    text-wrap: balance;
  }

  .col-capability {
    min-width: 135px;
    max-width: 150px;
    padding: 8px 6px;
  }

  .cap-icon-box {
    width: 22px;
    height: 22px;
  }

  .cap-icon-box svg {
    width: 12px;
    height: 12px;
  }

  .cap-name {
    font-size: 11px;
  }

  .cap-desc {
    font-size: 9.5px;
  }

  .tbl-status-text {
    font-size: 10px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 8px 6px;
  }

  .donut-center-amt {
    font-size: 15px;
  }

  .donut-center-sub {
    font-size: 10px;
  }

  .legend-pill {
    font-size: 10px;
    padding: 2px 7px;
  }

  .btn {
    padding: 9px 12px;
    font-size: 12.5px;
  }

  .btn-lg {
    padding: 11px 16px;
    font-size: 13.5px;
  }

  .cta-banner h2,
  .cta-title {
    font-size: 21px;
  }

  .cta-banner p,
  .cta-desc {
    font-size: 13px;
  }

  /* UPI Section (<= 360px) */
  .upi-section {
    padding: 36px 0;
  }

  .upi-grid {
    gap: 20px;
  }

  .upi-flow-preview {
    padding: 14px 10px;
    border-radius: var(--radius-md);
    gap: 12px;
  }

  .upi-flow-header-row span:first-child {
    font-size: 13.5px !important;
  }

  .upi-flow-header-row .app-badge {
    font-size: 10px;
    padding: 2px 6px;
  }

  .upi-recipient-card {
    padding: 10px 8px !important;
  }

  .upi-recipient-card > div:first-child > div:first-child {
    width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
  }

  .upi-recipient-amount-row span:first-child {
    font-size: 11.5px !important;
  }

  .upi-recipient-amount-row span:last-child {
    font-size: 16px !important;
  }

  .upi-disclaimer {
    padding: 8px 8px;
    font-size: 11px;
    line-height: 1.4;
    gap: 6px;
  }

  .upi-disclaimer svg {
    width: 14px;
    height: 14px;
  }

  .upi-app-badges {
    gap: 4px;
  }

  .upi-pill {
    padding: 4px 8px;
    font-size: 10.5px;
  }

  .upi-intent-preview {
    padding: 8px 8px !important;
    gap: 6px !important;
  }

  #upi-intent-code {
    font-size: 9.5px !important;
  }

  #upi-copy-intent-btn {
    padding: 3px 6px !important;
    font-size: 10px !important;
  }

  #upi-qr-toggle-btn {
    padding: 7px 10px;
    font-size: 11px;
  }

  .upi-qr-box {
    padding: 10px 8px !important;
  }

  .upi-qr-box svg {
    width: 110px !important;
    height: 110px !important;
  }

  .upi-content-col {
    order: -1;
    width: 100%;
    min-width: 0;
  }

  .upi-content-col .section-title {
    font-size: clamp(20px, 5.5vw, 22px);
    line-height: 1.25;
  }

  .upi-content-col .section-desc {
    font-size: 12.5px;
    margin-bottom: 16px !important;
    line-height: 1.45;
  }

  .upi-steps-list {
    gap: 10px !important;
  }

  .upi-step-item {
    gap: 10px !important;
  }

  .upi-step-item span {
    width: 24px !important;
    height: 24px !important;
    font-size: 11px !important;
  }

  .upi-step-item h4 {
    font-size: 13px;
  }

  .upi-step-item p {
    font-size: 11.5px;
  }

  .upi-visual-flow-card {
    padding: 12px 10px;
    margin-top: 14px;
  }

  .upi-flow-header span {
    font-size: 12px;
  }

  #upi-simulate-flow-btn {
    padding: 7px 10px;
    font-size: 11px;
  }

  .upi-stages-grid {
    gap: 4px;
  }

  .upi-stage-card {
    padding: 10px 8px;
    gap: 4px;
  }

  .upi-stage-card .stage-tag {
    font-size: 8.5px;
  }

  .upi-stage-card .stage-icon-circle {
    width: 28px;
    height: 28px;
  }

  .upi-stage-card .stage-icon-circle svg {
    width: 14px;
    height: 14px;
  }

  .upi-stage-card .stage-name {
    font-size: 11.5px;
  }

  .upi-stage-card .stage-sub {
    font-size: 10px;
    line-height: 1.3;
  }

  .upi-stage-card .stage-pill {
    font-size: 9px;
    padding: 2px 6px;
  }

  .stage-arrow-divider {
    height: 16px;
  }

  .upi-sim-log-bar {
    font-size: 10.5px;
    padding: 8px 10px;
    line-height: 1.4;
  }
}

/* 6. Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}