/* =====================================================
   TALLYSTICK WEBSITE — style.css
   Philosophy: Simple. Clean. Stunning.
   One font · purposeful color · generous whitespace
   ===================================================== */

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* TallyStick Refined Timber Palette — Softened & Balanced (Reduced Brown Tint) */
  --color-primary:       #936238;   /* Soft warm cedar / caramel */
  --color-primary-light: #F7F3EC;   /* Subtle raw wood highlight */
  --color-primary-dark:  #7A4D27;   /* Deep aged heartwood hover */
  --color-wood:          #936238;   /* Accent timber */
  --color-wood-light:    #F7F3EC;
  --color-wood-amber:    #A86E3C;   /* Warm golden wood accent */
  --color-wood-gold:     #EAD7BE;   /* Raw inner wood fiber */

  /* Earthy Status Tones */
  --color-green:         #236B48;   /* Rich forest pine green */
  --color-green-bg:      #E8F4EE;
  --color-red:           #BD3C2B;   /* Terracotta rust red */
  --color-red-bg:        #FBECE9;

  /* Natural Sandstone & Dark Bark Tones */
  --color-dark:          #1F1A15;   /* Deep bark timber */
  --color-dark-surface:  #241E18;   /* Aged bark surface */
  --color-bg:            #FAF9F6;   /* Crisp alabaster linen canvas (minimal brown tint) */
  --color-bg-alt:        #F3EFE8;   /* Subtle textured sand */
  --color-card:          #FFFFFF;   /* Crisp white cards */
  --color-border:        #E8E3D9;   /* Clean light driftwood border */
  --color-text:          #221D18;   /* Deep walnut bark text */
  --color-muted:         #756D63;   /* Weathered driftwood ash text */

  /* Typography & Shapes (with Indic Telugu/Devanagari font stack) */
  --font:                'Poppins', 'Kohinoor Telugu', 'Gautami', 'Nirmala UI', 'Kohinoor Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius:              14px;
  --shadow-sm:           0 2px 8px rgba(33, 28, 23, 0.05);
  --shadow-md:           0 8px 30px rgba(33, 28, 23, 0.07);
  --shadow-lg:           0 24px 60px rgba(147, 98, 56, 0.18);
}

/* === DARK THEME PALETTE === */
[data-theme="dark"] {
  --color-primary:       #C99668;   /* Luminous warm caramel timber */
  --color-primary-light: rgba(201, 150, 104, 0.16);
  --color-primary-dark:  #DDAF85;   /* Brighter timber hover */
  --color-wood:          #C99668;
  --color-wood-light:    rgba(201, 150, 104, 0.16);
  --color-wood-amber:    #D4A06F;
  --color-wood-gold:     #F3E3CE;

  /* Earthy Status Tones in Dark Mode */
  --color-green:         #34D399;   /* Emerald mint */
  --color-green-bg:      rgba(52, 211, 153, 0.16);
  --color-red:           #F87171;   /* Coral red */
  --color-red-bg:        rgba(248, 113, 113, 0.16);

  /* Deep Warm Dark Onyx Surfaces */
  --color-dark:          #FAF6EF;   /* Soft warm linen white for titles/headings */
  --color-dark-surface:  #161412;
  --color-bg:            #121110;   /* Warm dark onyx canvas */
  --color-bg-alt:        #181614;   /* Elevated dark section */
  --color-card:          #1C1A17;   /* Dark elevated card surface */
  --color-border:        #2C2723;   /* Dark stone border */
  --color-text:          #ECE7DE;   /* Soft warm linen white body */
  --color-muted:         #9C9488;   /* Warm ash gray text */

  --shadow-sm:           0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md:           0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg:           0 24px 60px rgba(0, 0, 0, 0.6);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* === LAYOUT === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 9999px;
  font-family: var(--font);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}

/* Primary — warm chestnut timber */
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 90, 43, 0.38);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 90, 43, 0.52);
}

/* Ghost / Secondary */
.btn--ghost {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: rgba(147, 98, 56, 0.25);
}
.btn--ghost:hover {
  background: rgba(147, 98, 56, 0.15);
  transform: translateY(-1px);
}

/* White (for dark sections) */
.btn--white {
  background: #ffffff;
  color: var(--color-dark);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
}
.btn--white:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

/* Outline White */
.btn--outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
}
.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  transform: translateY(-1px);
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.84rem;
}

/* === BADGE === */
.badge {
  display: inline-block;
  padding: 5px 16px;
  background: var(--color-green-bg);
  color: var(--color-green);
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(22, 163, 74, 0.22);
  align-self: flex-start;
}

/* === SECTION HEADINGS === */
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--color-dark);
  letter-spacing: -0.025em;
}

.section-sub {
  text-align: center;
  color: var(--color-muted);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* === NAV — glassmorphism strip === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 240, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(231, 226, 216, 0.85);
  transition: box-shadow 0.25s ease;
}
.nav.nav--scrolled {
  box-shadow: 0 4px 20px rgba(28, 25, 23, 0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
}
.nav__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(28, 25, 23, 0.15);
  border: 1px solid rgba(133, 77, 14, 0.2);
}
.nav__name {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}
.nav__link:hover,
.nav__link.active {
  color: var(--color-primary);
  font-weight: 600;
}
.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.theme-toggle,
.sound-toggle {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  user-select: none;
  line-height: 1;
}
.theme-toggle:hover,
.sound-toggle:hover {
  background: var(--color-border);
  transform: scale(1.08);
}
.theme-toggle:hover {
  transform: rotate(15deg) scale(1.08);
}
.theme-toggle:active,
.sound-toggle:active {
  transform: scale(0.95);
}
.theme-toggle:focus-visible,
.sound-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.theme-toggle__icon,
.sound-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === MOBILE NAVIGATION HAMBURGER & QUICK-STRIP === */
.nav__hamburger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  user-select: none;
  z-index: 102;
}
.nav__hamburger:hover {
  background: var(--color-border);
  transform: scale(1.06);
}
.nav__hamburger:active {
  transform: scale(0.94);
}
.nav__hamburger-line {
  display: block;
  width: 17px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  transform-origin: center;
}
.nav__hamburger.is-active .nav__hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__hamburger.is-active .nav__hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger.is-active .nav__hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Horizontal Quick-Nav Strip (Right below main header on mobile) */
.nav__mobile-strip {
  display: none;
  border-top: 1px solid rgba(231, 226, 216, 0.75);
  background: inherit;
  padding: 7px 0 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav__mobile-strip::-webkit-scrollbar {
  display: none;
}
.nav__mobile-strip-inner {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  width: max-content;
  min-width: 100%;
}
.nav__mobile-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-muted);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.nav__mobile-pill:hover,
.nav__mobile-pill.active {
  color: #ffffff;
  background: var(--color-primary);
  border-color: var(--color-primary);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(147, 98, 56, 0.24);
}
.nav__mobile-pill--accent {
  border-color: rgba(147, 98, 56, 0.35);
}
.nav__pill-badge {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(147, 98, 56, 0.15);
  color: var(--color-primary);
  font-weight: 700;
}
.nav__mobile-pill.active .nav__pill-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Mobile Navigation Drawer / Dropdown */
.nav__mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(248, 246, 240, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 99;
  padding: 122px 20px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  overflow-y: auto;
}
.nav__mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav__mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav__mobile-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.nav__mobile-item:hover,
.nav__mobile-item:active {
  background: var(--color-bg-alt);
  border-color: var(--color-primary);
  transform: translateX(3px);
}
.nav__mobile-item.active {
  border-color: var(--color-primary);
  background: rgba(147, 98, 56, 0.08);
}
.nav__mobile-item-icon {
  font-size: 1.35rem;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav__mobile-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}
.nav__mobile-item-text strong {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--color-text);
}
.nav__mobile-item-text small {
  font-size: 0.78rem;
  color: var(--color-muted);
}
.nav__mobile-item--featured {
  background: linear-gradient(135deg, rgba(147, 98, 56, 0.08) 0%, rgba(217, 119, 6, 0.06) 100%);
  border-color: rgba(147, 98, 56, 0.3);
}

.nav__mobile-menu-footer {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nav__mobile-cta {
  width: 100%;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(147, 98, 56, 0.28);
}
.nav__mobile-note {
  font-size: 0.76rem;
  text-align: center;
  color: var(--color-muted);
  margin: 0;
}

body.menu-open {
  overflow: hidden;
}

/* === DARK THEME COMPONENT OVERRIDES === */
[data-theme="dark"] .nav {
  background: rgba(18, 17, 16, 0.88);
  border-bottom-color: rgba(46, 42, 38, 0.85);
}
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .sound-toggle {
  background: #1C1A17;
  border-color: #2E2A26;
  color: #FAF6EF;
}
[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .sound-toggle:hover {
  background: #282420;
  border-color: #3D3730;
}
[data-theme="dark"] .nav__hamburger {
  background: #1C1A17;
  border-color: #2E2A26;
  color: #FAF6EF;
}
[data-theme="dark"] .nav__hamburger:hover {
  background: #282420;
  border-color: #3D3730;
}
[data-theme="dark"] .nav__mobile-strip {
  border-top-color: rgba(46, 42, 38, 0.85);
}
[data-theme="dark"] .nav__mobile-pill {
  background: #1C1A17;
  border-color: #2E2A26;
  color: #D6D0C5;
}
[data-theme="dark"] .nav__mobile-pill:hover,
[data-theme="dark"] .nav__mobile-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}
[data-theme="dark"] .nav__mobile-pill--accent .nav__pill-badge {
  background: rgba(201, 150, 104, 0.2);
  color: #E2B086;
}
[data-theme="dark"] .nav__mobile-menu {
  background: rgba(18, 17, 16, 0.98);
}
[data-theme="dark"] .nav__mobile-item {
  background: #161412;
  border-color: #2A2622;
}
[data-theme="dark"] .nav__mobile-item:hover,
[data-theme="dark"] .nav__mobile-item:active {
  background: #1E1B18;
  border-color: var(--color-primary);
}
[data-theme="dark"] .nav__mobile-item.active {
  background: rgba(201, 150, 104, 0.12);
  border-color: var(--color-primary);
}
[data-theme="dark"] .nav__mobile-item-icon {
  background: #221F1B;
}
[data-theme="dark"] .nav__mobile-item--featured {
  background: linear-gradient(135deg, rgba(201, 150, 104, 0.12) 0%, rgba(217, 119, 6, 0.08) 100%);
  border-color: rgba(201, 150, 104, 0.3);
}
[data-theme="dark"] .hero {
  background: linear-gradient(150deg, #181614 0%, #121110 50%, #1B1917 100%);
}
[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(201, 150, 104, 0.08) 0%, transparent 68%);
}
[data-theme="dark"] .hero-device {
  border-color: #38342E;
  outline-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.65), 0 0 50px rgba(201, 150, 104, 0.15);
}
[data-theme="dark"] .stat-card {
  background: #181614;
  border-color: #2C2723;
}
[data-theme="dark"] .stat-card:hover {
  border-color: #C99668;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .phone-btn-hw {
  background: #4A443D;
}
[data-theme="dark"] .btn--white {
  background: #24201C;
  color: #FAF6EF;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
[data-theme="dark"] .btn--white:hover {
  background: #2E2A26;
}
[data-theme="dark"] .btn--ghost {
  background: rgba(201, 150, 104, 0.12);
  color: #C99668;
  border-color: rgba(201, 150, 104, 0.3);
}
[data-theme="dark"] .btn--ghost:hover {
  background: rgba(201, 150, 104, 0.22);
}
[data-theme="dark"] .screenshot-item {
  border-color: #2E2A26;
}
[data-theme="dark"] .download {
  background: #0E0D0C;
  border-top: 1px solid #221F1B;
}
[data-theme="dark"] .download::before {
  background: radial-gradient(circle, rgba(201, 150, 104, 0.12) 0%, transparent 70%);
}
[data-theme="dark"] .lightbox__backdrop {
  background: rgba(10, 9, 8, 0.94);
}
[data-theme="dark"] .toast {
  background: #1C1A17;
  border-color: #2E2A26;
}

/* === AMBIENT LIGHTING ORBS === */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(85px);
  opacity: 0.18;
  animation: orbBreath 8s ease-in-out infinite alternate;
}
.ambient-orb--amber {
  background: radial-gradient(circle, #A86E3C 0%, #936238 60%, transparent 80%);
}
.ambient-orb--gold {
  background: radial-gradient(circle, #EAD7BE 0%, #D4A06F 60%, transparent 80%);
  animation-delay: -4s;
}
@keyframes orbBreath {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(15px, -10px); }
  100% { transform: scale(0.96) translate(-10px, 12px); }
}

/* === PULSE DOT INDICATOR === */
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: pulseDotAnim 2s infinite;
  margin-right: 5px;
  vertical-align: middle;
}
@keyframes pulseDotAnim {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* === HERO — gradient bg with ambient warmth === */
.hero {
  padding: 96px 0 0;
  background: linear-gradient(150deg, #FAF8F4 0%, #FFFFFF 50%, #F5EFE6 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 98, 56, 0.08) 0%, transparent 68%);
  right: -120px;
  top: -160px;
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 1;
}
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero__title {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.14;
  color: var(--color-dark);
  letter-spacing: -0.035em;
}
.hero__title-accent {
  background: linear-gradient(135deg, #7A4D27 0%, #936238 50%, #BD3C2B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
[data-theme="dark"] .hero__title-accent {
  background: linear-gradient(135deg, #F3E3CE 0%, #D4A06F 50%, #E29B63 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__sub {
  color: var(--color-muted);
  font-size: 1.08rem;
  max-width: 480px;
  line-height: 1.72;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}
.hero__perks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}
.hero__perk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: var(--color-primary-light);
  border: 1px solid rgba(147, 98, 56, 0.22);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  user-select: none;
}
.hero__perk:hover {
  transform: translateY(-2px);
  background: rgba(147, 98, 56, 0.16);
  border-color: var(--color-primary);
}
[data-theme="dark"] .hero__perk {
  background: rgba(201, 150, 104, 0.12);
  border-color: rgba(201, 150, 104, 0.3);
  color: #C99668;
}
[data-theme="dark"] .hero__perk:hover {
  background: rgba(201, 150, 104, 0.24);
}
.origin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--color-wood-light);
  color: var(--color-wood);
  border: 1px solid rgba(133, 77, 14, 0.22);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 2px;
}

/* === HERO PHONE MOCKUP WITH 3D CHASSIS & FLOATING BADGES === */
.hero__mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1200px;
}
.hero-device {
  width: 100%;
  max-width: 295px;
  background: #1E1B18;
  border: 9px solid #2C2824;
  outline: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 40px;
  box-shadow: 0 35px 80px -15px rgba(36, 27, 16, 0.28), 0 0 45px rgba(147, 98, 56, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  transform: rotate(2.5deg);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
  cursor: pointer;
}
.hero-device:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 45px 100px -10px rgba(147, 98, 56, 0.35);
}
.hero-device__camera {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #0D0C0A;
  border-radius: 50%;
  border: 1.5px solid #221F1C;
  z-index: 10;
}
.hero-device__screen {
  position: relative;
  border-radius: 31px;
  overflow: hidden;
  background: #FAF7F2;
}
.hero-device__screen img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-device__glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 38%, transparent 60%);
  pointer-events: none;
}

/* ============================================================
   ATMOSPHERIC FALLING MARIGOLD PETALS (Inspired by thesortingfactory)
   ============================================================ */
.hero-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}
.marigold-petal {
  position: absolute;
  top: -40px;
  will-change: transform;
  pointer-events: none;
  display: block;
  opacity: 0;
}
.marigold-petal svg {
  width: 100%;
  height: 100%;
  display: block;
  animation: petalFlutter 2.6s ease-in-out infinite alternate;
}
@keyframes petalFall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.95;
  }
  88% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(var(--dx, 50px), 820px, 0) rotate(var(--rot, 360deg));
    opacity: 0;
  }
}
@keyframes petalFlutter {
  0% { transform: rotateY(0deg) rotateZ(-14deg); }
  100% { transform: rotateY(65deg) rotateZ(16deg); }
}
[data-theme="dark"] .marigold-petal {
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.4));
}

/* ============================================================
   DUKAAN LIVE SCENE — Indian Storefront & Atmospheric Street
   ============================================================ */
.dukaan-scene {
  position: relative;
  width: 100%;
  height: 315px;
  margin-top: 40px;
  overflow: hidden;
  user-select: none;
  z-index: 4;
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.4) 0%, rgba(247, 243, 236, 0.85) 60%, #E8DFC8 100%);
  border-top: 1px solid rgba(147, 98, 56, 0.15);
}
[data-theme="dark"] .dukaan-scene {
  background: linear-gradient(180deg, #120F0C 0%, #1A1612 60%, #201B16 100%);
  border-top-color: rgba(201, 150, 104, 0.15);
}

/* Background Atmospheric Layers (Sun, Birds, Town Skyline, Bunting, Lamp) */
.dukaan-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

/* Celestial Sun (Day) & Luminous Crescent Moon (Night) */
.dukaan-celestial {
  position: absolute;
  right: 12%;
  top: 14px;
  width: 60px;
  height: 60px;
  z-index: 2;
  pointer-events: none;
}
.dukaan-sun {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #F59E0B 32%, #FBBF24 65%, transparent 75%);
  box-shadow: 0 0 70px 28px rgba(245, 158, 11, 0.32);
  animation: sunBreathe 8s ease-in-out infinite;
  display: block;
}
@keyframes sunBreathe {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.08); opacity: 1; }
}
.dukaan-moon {
  display: none;
  position: relative;
  width: 54px;
  height: 54px;
}
.moon-halo {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.38) 0%, rgba(226, 160, 102, 0.12) 55%, transparent 75%);
  filter: blur(5px);
  pointer-events: none;
}

/* Dark Mode: Sun disappears, Moon appears floating with gentle celestial glow */
[data-theme="dark"] .dukaan-sun {
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
}
[data-theme="dark"] .dukaan-moon {
  display: block;
  opacity: 1;
  animation: moonFloat 6s ease-in-out infinite alternate;
}
@keyframes moonFloat {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-5px) rotate(3deg); }
}

/* Twinkling Night Stars across sky in Dark Mode */
.dukaan-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
[data-theme="dark"] .dukaan-stars {
  display: block;
  opacity: 1;
}
.dukaan-stars .star {
  position: absolute;
  color: #FEF08A;
  line-height: 1;
  font-size: 0.62rem;
  animation: starTwinkle 3s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 3px rgba(254, 240, 138, 0.8));
}
.dukaan-stars .star:nth-child(2n) {
  font-size: 0.85rem;
  animation-duration: 2.3s;
  animation-delay: -0.8s;
  color: #FFFDF0;
}
.dukaan-stars .star:nth-child(3n) {
  font-size: 0.52rem;
  animation-duration: 3.8s;
  animation-delay: -1.6s;
  color: #FDE68A;
}
.dukaan-stars .star:nth-child(4n) {
  animation-duration: 2.7s;
  animation-delay: -2.2s;
}
@keyframes starTwinkle {
  0% { opacity: 0.2; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1.25); filter: drop-shadow(0 0 5px #FDE68A); }
  100% { opacity: 0.35; transform: scale(0.85); }
}

/* Birds Flying Across Morning Sky (Light Mode Only, Stopped & Hidden in Dark Mode) */
.dukaan-birds {
  position: absolute;
  top: 22px;
  left: -12%;
  width: 140px;
  color: #936238;
  opacity: 0.65;
  animation: birdsFly 34s linear infinite;
}
@keyframes birdsFly {
  from { transform: translateX(0); }
  to { transform: translateX(122vw); }
}
/* In Dark Mode: Stop the birds flying completely */
[data-theme="dark"] .dukaan-birds {
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
  pointer-events: none !important;
}

/* Distant Indian Bazaar Skyline Silhouette */
.dukaan-skyline {
  position: absolute;
  bottom: 34px;
  left: 0;
  right: 0;
  height: 105px;
  pointer-events: none;
  color: #D6C7B2;
}
[data-theme="dark"] .dukaan-skyline {
  color: #2D2620;
}
.dukaan-skyline svg {
  width: 100%;
  height: 100%;
  display: block;
}
.skyline-far {
  fill: currentColor;
  opacity: 0.38;
}
.skyline-mid {
  fill: currentColor;
  opacity: 0.85;
}

/* Festive Triangular Bunting Flags */
.dukaan-bunting {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  gap: 16px;
  justify-content: space-around;
  padding: 0 10px;
  opacity: 0.85;
}
.dukaan-bunting i {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 14px solid #E67E22;
  transform-origin: top center;
  animation: flagFlutter 3.2s ease-in-out infinite alternate;
}
.dukaan-bunting i:nth-child(2n) {
  border-top-color: #FBBF24;
  animation-delay: -0.6s;
}
.dukaan-bunting i:nth-child(3n) {
  border-top-color: #BD3C2B;
  animation-delay: -1.2s;
}
.dukaan-bunting i:nth-child(4n) {
  border-top-color: #236B48;
  animation-delay: -1.8s;
}
.dukaan-bunting i:nth-child(5n) {
  border-top-color: #936238;
  animation-delay: -2.4s;
}
@keyframes flagFlutter {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(7deg); }
}

/* Vintage Indian Street Lamp */
.dukaan-lamp {
  position: absolute;
  bottom: 34px;
  left: 7%;
  width: 32px;
  height: 135px;
  color: #362F28;
  z-index: 5;
}
[data-theme="dark"] .dukaan-lamp {
  color: #52473D;
}
.dukaan-lamp svg {
  width: 100%;
  height: 100%;
  display: block;
}
.lamp-glow {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
[data-theme="dark"] .lamp-glow {
  opacity: 1;
}

/* Parked Classic Indian Roadster Bicycle */
.dukaan-cycle {
  position: absolute;
  bottom: 34px;
  left: 12%;
  width: 96px;
  height: 66px;
  z-index: 5;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.22));
}
[data-theme="dark"] .dukaan-cycle {
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
}
.dukaan-cycle svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Ambient Shop Lantern Light in Dark Mode */
.dukaan-lantern-glow {
  position: absolute;
  left: 54%;
  top: 10px;
  transform: translateX(-50%);
  width: 360px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(ellipse at top, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
[data-theme="dark"] .dukaan-lantern-glow {
  opacity: 1;
  background: radial-gradient(ellipse at top, rgba(245, 158, 11, 0.28) 0%, rgba(201, 150, 104, 0.1) 50%, transparent 75%);
}

/* Track container */
.dukaan-scene__track {
  position: relative;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
}

/* The Storefront (Grounded at sidewalk top: bottom: 34px) */
.dukaan-store {
  position: absolute;
  left: 54%;
  transform: translateX(-50%);
  bottom: 34px;
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 6;
}

/* Striped Fabric Awning */
.dukaan-awning {
  width: 100%;
  position: relative;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  border-radius: 6px 6px 0 0;
}
.dukaan-awning__stripes {
  display: flex;
  height: 24px;
  width: 100%;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}
.dukaan-awning__stripes span {
  flex: 1;
}
.dukaan-awning__stripes span:nth-child(odd) {
  background: #936238;
}
.dukaan-awning__stripes span:nth-child(even) {
  background: #FFF9F3;
}
[data-theme="dark"] .dukaan-awning__stripes span:nth-child(odd) {
  background: #804F2B;
}
[data-theme="dark"] .dukaan-awning__stripes span:nth-child(even) {
  background: #E8DCCB;
}
.dukaan-awning__valance {
  display: flex;
  width: 100%;
  height: 8px;
}
.dukaan-awning__valance i {
  flex: 1;
  border-radius: 0 0 50% 50%;
}
.dukaan-awning__valance i:nth-child(odd) {
  background: #936238;
}
.dukaan-awning__valance i:nth-child(even) {
  background: #FFF9F3;
}
[data-theme="dark"] .dukaan-awning__valance i:nth-child(odd) {
  background: #804F2B;
}
[data-theme="dark"] .dukaan-awning__valance i:nth-child(even) {
  background: #E8DCCB;
}

/* Store Signboard */
.dukaan-sign {
  width: 94%;
  background: #3B2414;
  border: 1.5px solid #C99668;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.dukaan-sign__icon {
  font-size: 1.15rem;
  line-height: 1;
}
.dukaan-sign__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.dukaan-sign__title {
  color: #FFFDF9;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.dukaan-sign__sub {
  color: #E2A066;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Auspicious Genda Phool (Marigold) Garland */
.dukaan-toran {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: -3px;
  margin-bottom: 2px;
  z-index: 6;
}
.toran-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.toran-dot--gold {
  background: #FBBF24;
}
.toran-dot--orange {
  background: #EA580C;
}

/* Shop Counter Desk & Merchant */
.dukaan-counter {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.dukaan-merchant {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: -4px;
  z-index: 2;
}
.merchant-head {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.merchant-hair {
  width: 22px;
  height: 8px;
  background: #231F1D;
  border-radius: 12px 12px 0 0;
}
.merchant-face {
  width: 20px;
  height: 16px;
  background: #F3C69D;
  border-radius: 0 0 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.merchant-eyes {
  display: flex;
  gap: 5px;
  margin-top: 2px;
}
.merchant-eyes span {
  width: 2.5px;
  height: 2.5px;
  background: #231F1D;
  border-radius: 50%;
  display: inline-block;
}
.merchant-mustache {
  width: 9px;
  height: 2px;
  background: #231F1D;
  border-radius: 2px;
  margin-top: 2px;
}
.merchant-torso {
  display: flex;
  align-items: flex-end;
  position: relative;
}
.merchant-kurta {
  width: 32px;
  height: 22px;
  background: #936238;
  border-radius: 6px 6px 0 0;
}
[data-theme="dark"] .merchant-kurta {
  background: #A0693E;
}
.merchant-phone {
  position: absolute;
  right: -8px;
  bottom: 4px;
  width: 10px;
  height: 16px;
  background: #1C1917;
  border: 1px solid #78716C;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.merchant-phone.phone-pulse {
  animation: phonePulseLight 0.6s ease-in-out;
}
@keyframes phonePulseLight {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.8); }
  50% { transform: scale(1.35) rotate(-5deg); box-shadow: 0 0 12px 6px rgba(22, 163, 74, 0.9); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
.phone-screen-light {
  width: 6px;
  height: 11px;
  background: #22C55E;
  border-radius: 1.5px;
  display: block;
}

/* Desk Surface & Props (Waist height, grounded on sidewalk) */
.dukaan-desk {
  width: 100%;
  position: relative;
  z-index: 3;
}
.desk-wood {
  width: 100%;
  height: 16px;
  background: linear-gradient(180deg, #A87143 0%, #7A4D27 100%);
  border-radius: 4px;
  border-top: 2px solid #C99668;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}
.desk-props {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  padding: 0 10px;
}
.desk-jar, .desk-scale, .desk-chai {
  font-size: 0.95rem;
  line-height: 1;
}
.desk-bell {
  background: #D97706;
  border: 1.5px solid #FDE68A;
  color: #FFFFFF;
  border-radius: 9999px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease;
}
.desk-bell:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}
.desk-bell.bell-ring {
  animation: bellShake 0.45s ease;
}
@keyframes bellShake {
  0%, 100% { transform: rotate(0); }
  20%, 60% { transform: rotate(-16deg) scale(1.12); }
  40%, 80% { transform: rotate(16deg) scale(1.12); }
}
.bell-icon {
  font-size: 0.85rem;
  line-height: 1;
}
.bell-tag {
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--font);
}

/* Transaction Feedback Popover */
.dukaan-tx-bubble {
  position: absolute;
  top: -64px;
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 30;
  width: max-content;
  max-width: min(290px, 92vw);
  text-align: center;
}
.dukaan-tx-bubble.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px) scale(1);
}
.tx-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: #15803D;
  color: #FFFFFF;
  border-radius: 9999px;
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
  white-space: normal;
  text-align: left;
}
.dukaan-tx-bubble.tx--paid .tx-card {
  background: #2563EB;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}
.dukaan-tx-bubble.tx--settled .tx-card {
  background: #7C3AED;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}
.tx-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
}
.tx-content {
  display: flex;
  flex-direction: column;
  line-height: 1.34;
  text-align: left;
}
.tx-title {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: normal;
}
.tx-meta {
  font-size: 0.64rem;
  opacity: 0.92;
  white-space: normal;
}
.tx-pill {
  background: rgba(28, 25, 23, 0.94);
  color: #86EFAC;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1.3;
}

/* Walking Customer (Firmly Grounded at sidewalk curb: bottom: 34px) */
.dukaan-customer {
  position: absolute;
  bottom: 34px;
  left: -80px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}
.dukaan-customer.walking-in {
  animation: custWalkIn 3.6s cubic-bezier(0.25, 0.9, 0.45, 1) forwards;
}
.dukaan-customer.at-counter {
  left: clamp(38%, 41%, 44%);
}
.dukaan-customer.leaving {
  animation: custWalkOut 3.6s linear forwards;
}
@keyframes custWalkIn {
  from { left: -80px; }
  to { left: clamp(38%, 41%, 44%); }
}
@keyframes custWalkOut {
  from { left: clamp(38%, 41%, 44%); }
  to { left: 106%; }
}

/* Customer Character Figures (Total height 64px grounded at bottom: 34px) */
.cust-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dukaan-customer.walking-in .cust-body,
.dukaan-customer.leaving .cust-body {
  animation: bodyBob 0.48s ease-in-out infinite alternate;
}
@keyframes bodyBob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}
.cust-head {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cust-hair {
  width: 18px;
  height: 6px;
  background: #1C1917;
  border-radius: 10px 10px 0 0;
}
.cust-face {
  width: 16px;
  height: 14px;
  background: #E8B68A;
  border-radius: 0 0 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cust-eyes {
  display: flex;
  gap: 4px;
}
.cust-eyes span {
  width: 2.2px;
  height: 2.2px;
  background: #1C1917;
  border-radius: 50%;
  display: inline-block;
}
.cust-body {
  position: relative;
  display: flex;
  align-items: flex-end;
}
.cust-shirt {
  width: 24px;
  height: 22px;
  background: #0284C7;
  border-radius: 4px 4px 0 0;
}
.cust-bag {
  position: absolute;
  right: -10px;
  bottom: 0px;
  font-size: 0.95rem;
  line-height: 1;
}
.dukaan-customer.walking-in .cust-bag,
.dukaan-customer.leaving .cust-bag {
  animation: bagSwing 0.48s ease-in-out infinite alternate;
}
@keyframes bagSwing {
  0% { transform: rotate(-8deg); }
  100% { transform: rotate(10deg); }
}
.cust-legs {
  display: flex;
  gap: 4px;
}
.cust-leg {
  width: 5px;
  height: 22px;
  background: #334155;
  border-radius: 0 0 3px 3px;
  transform-origin: top center;
}
.dukaan-customer.walking-in .cust-leg--left,
.dukaan-customer.leaving .cust-leg--left {
  animation: legSwing 0.48s ease-in-out infinite alternate;
}
.dukaan-customer.walking-in .cust-leg--right,
.dukaan-customer.leaving .cust-leg--right {
  animation: legSwing 0.48s ease-in-out infinite alternate-reverse;
}
@keyframes legSwing {
  0% { transform: rotate(-22deg); }
  100% { transform: rotate(22deg); }
}

/* Customer Speech Dialogue Bubble (Floats above head, wraps naturally) */
.cust-bubble {
  position: absolute;
  bottom: 84px;
  left: 50%;
  transform: translateX(-35%) translateY(8px) scale(0.9);
  background: #FFFFFF;
  border: 1.5px solid #EBE5DC;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #292524;
  box-shadow: 0 10px 25px rgba(28, 25, 23, 0.12);
  white-space: normal;
  width: max-content;
  max-width: min(260px, 60vw);
  word-wrap: break-word;
  line-height: 1.45;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 35;
}
.cust-bubble.visible {
  opacity: 1;
  transform: translateX(-35%) translateY(0) scale(1);
}
.cust-bubble__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}
.cust-bubble__author {
  font-size: 0.72rem;
  color: var(--color-primary, #936238);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cust-bubble__lang {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 9999px;
  background: rgba(147, 98, 56, 0.12);
  color: var(--color-primary, #936238);
  border: 1px solid rgba(147, 98, 56, 0.2);
  line-height: 1.3;
}
[data-theme="dark"] .cust-bubble__lang {
  background: rgba(226, 160, 102, 0.18);
  color: #E2A066;
  border-color: rgba(226, 160, 102, 0.3);
}
.cust-bubble__tail {
  position: absolute;
  bottom: -6px;
  left: 35%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #FFFFFF;
  border-right: 1.5px solid #EBE5DC;
  border-bottom: 1.5px solid #EBE5DC;
}
[data-theme="dark"] .cust-bubble {
  background: #1C1917;
  border-color: #3C352E;
  color: #F5ECE0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .cust-bubble__tail {
  background: #1C1917;
  border-color: #3C352E;
}
[data-theme="dark"] .cust-bubble__author {
  color: #E2A066;
}

/* Cobblestone Street Pavement (Height 34px, ground baseline for feet and desk) */
.dukaan-street {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 34px;
  background: linear-gradient(180deg, #EBE2D4 0%, #D8CBB8 100%);
  border-top: 3px solid #C4B29C;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .dukaan-street {
  background: linear-gradient(180deg, #1F1A15 0%, #15120F 100%);
  border-top-color: #383027;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}
.street-pavers {
  display: flex;
  height: 24px;
  width: 100%;
  overflow: hidden;
}
.street-pavers span {
  flex: 1;
  border-right: 1.5px solid rgba(0, 0, 0, 0.07);
}
[data-theme="dark"] .street-pavers span {
  border-right: 1.5px solid rgba(255, 255, 255, 0.05);
}
.street-curb {
  height: 5px;
  background: rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .street-curb {
  background: rgba(0, 0, 0, 0.45);
}

/* Mobile Media Query for Dukaan Scene */
@media (max-width: 768px) {
  .dukaan-scene {
    height: 280px;
    margin-top: 24px;
  }
  .dukaan-store {
    left: 56%;
    transform: translateX(-50%) scale(0.88);
    transform-origin: bottom center;
  }
  .dukaan-customer.at-counter {
    left: 28%;
  }
  @keyframes custWalkIn {
    from { left: -80px; }
    to { left: 28%; }
  }
  @keyframes custWalkOut {
    from { left: 28%; }
    to { left: 106%; }
  }
  .cust-bubble {
    font-size: 0.68rem;
    max-width: min(210px, 58vw);
    white-space: normal;
    text-align: left;
    bottom: 86px;
    padding: 6px 10px;
    transform: translateX(-28%) translateY(8px) scale(0.9);
  }
  .cust-bubble.visible {
    transform: translateX(-28%) translateY(0) scale(1);
  }
  .cust-bubble__tail {
    left: 28%;
  }
  .dukaan-tx-bubble {
    top: -58px;
    max-width: min(220px, 65vw);
  }
  .tx-card {
    padding: 5px 11px;
    font-size: 0.7rem;
  }
  .tx-pill {
    font-size: 0.62rem;
    padding: 3px 9px;
  }
  .dukaan-lamp {
    display: none;
  }
  .dukaan-cycle {
    width: 72px;
    height: 50px;
    left: 3%;
  }
}

/* === STATS BAR (Modern Glass Cards) === */
.stats {
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
  position: relative;
  z-index: 2;
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 880px;
  margin: 0 auto;
  gap: 20px;
}
.stat-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 12px 30px rgba(147, 98, 56, 0.12);
}
.stat-card:hover::before {
  opacity: 1;
}
.stat-item__value {
  font-size: 2.05rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.15;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.stat-item__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted);
  line-height: 1.4;
}

/* === FEATURES === */
.features {
  padding: 100px 0;
  background: var(--color-bg);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 4px 16px rgba(28, 25, 23, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Blue left-bar accent on hover */
.feature-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.25s ease;
  border-radius: 0 2px 2px 0;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.feature-card:hover::after {
  transform: scaleY(1);
}
.feature-card__icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  line-height: 1;
}
.feature-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-dark);
}
.feature-card__desc {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.65;
  flex-grow: 1;
}
.feature-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.feature-card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 9999px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

/* === HOW IT WORKS === */
.how {
  padding: 100px 0;
  background: var(--color-bg-alt);
}
.how__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 24px;
}
.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}
.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 18px rgba(139, 90, 43, 0.32);
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-dark);
}
.step p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.65;
}
.step__divider {
  width: 2px;
  height: 56px;
  background: var(--color-border);
  align-self: flex-start;
  margin-top: 0;
  flex-shrink: 0;
}

/* === INTERACTIVE IN-APP PHONE SIMULATOR & WALKTHROUGH === */
.demo {
  padding: 100px 0;
  background: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}
.demo__badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.demo__sound-toggle {
  background: var(--color-card);
  border: 1.5px solid var(--color-border);
  color: var(--color-muted);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
}
.demo__sound-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: scale(1.03);
}

/* Centered Virtual Phone Simulator Layout */
.demo__app-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  position: relative;
}

/* Physical Phone Shell & Pedestal Stage Glow */
.phone-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
}
.phone-pedestal-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 98, 56, 0.22) 0%, rgba(147, 98, 56, 0.05) 50%, transparent 72%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(48px);
}
[data-theme="dark"] .phone-pedestal-glow {
  background: radial-gradient(circle, rgba(201, 150, 104, 0.2) 0%, rgba(201, 150, 104, 0.04) 50%, transparent 72%);
}

.phone-chassis {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 382px;
  z-index: 1;
}

/* Physical Hardware Side Buttons */
.phone-btn-hw {
  position: absolute;
  background: #3A3530;
  border-radius: 3px;
  z-index: 1;
}
.phone-btn-hw--vol-up {
  left: -4px;
  top: 112px;
  width: 4px;
  height: 50px;
  border-radius: 3px 0 0 3px;
  box-shadow: -1px 0 2px rgba(0, 0, 0, 0.35);
}
.phone-btn-hw--vol-down {
  left: -4px;
  top: 172px;
  width: 4px;
  height: 50px;
  border-radius: 3px 0 0 3px;
  box-shadow: -1px 0 2px rgba(0, 0, 0, 0.35);
}
.phone-btn-hw--power {
  right: -4px;
  top: 136px;
  width: 4px;
  height: 54px;
  border-radius: 0 3px 3px 0;
  box-shadow: 1px 0 2px rgba(0, 0, 0, 0.35);
}

.phone-device {
  width: 100%;
  max-width: 380px;
  height: 724px;
  background: #1E1B18;
  border: 11px solid #2C2824;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 44px;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  transition: transform 0.15s ease;
}

/* Device Haptic Vibration Keyframe */
.phone-device.haptic-pulse {
  animation: phoneHapticAnim 0.26s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes phoneHapticAnim {
  0% { transform: scale(1); }
  25% { transform: scale(0.99) rotate(0.4deg); }
  50% { transform: scale(1.01) rotate(-0.4deg); }
  75% { transform: scale(0.995); }
  100% { transform: scale(1); }
}

/* Physical Phone Details */
.phone-earpiece {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 4px;
  background: #3D3934;
  border-radius: 4px;
  z-index: 60;
}
.phone-camera {
  position: absolute;
  top: 9px;
  left: calc(50% + 40px);
  width: 7px;
  height: 7px;
  background: #0D0C0A;
  border: 1.5px solid #221F1C;
  border-radius: 50%;
  z-index: 60;
}

/* Inner Phone Screen */
.phone-screen {
  flex: 1;
  position: relative;
  background: #FAF7F2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
/* Gorilla Glass Glare Sheen Overlay */
.phone-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 40%, transparent 65%);
  pointer-events: none;
  z-index: 35;
}

/* Android Status Bar */
.phone-status-bar {
  height: 26px;
  padding: 6px 16px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #57534E;
  background: transparent;
  z-index: 20;
}
.status-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Phone Screen Containers */
.app-screen {
  display: none;
  flex-direction: column;
  height: calc(100% - 26px);
  position: relative;
  overflow: hidden;
}
.app-screen.active {
  display: flex;
  animation: appScreenFade 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes appScreenFade {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

/* SCREEN A: PASSBOOK SCREEN (screenshot-2.png) */
.app-screen--passbook .app-bar {
  height: 54px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border-bottom: 1px solid #EBE5DC;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.app-bar__back {
  background: transparent;
  border: none;
  font-size: 1.35rem;
  font-weight: 700;
  color: #292524;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  transition: background 0.15s ease;
  line-height: 1;
}
.app-bar__back:hover {
  background: #F5ECE0;
}
.app-bar__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #936238;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-bar__info {
  flex: 1;
  min-width: 0;
}
.app-bar__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #292524;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.app-bar__sub {
  font-size: 0.7rem;
  color: #78716C;
  cursor: pointer;
  line-height: 1.2;
}
.app-bar__sub:hover {
  color: #936238;
}
.app-bar__menu {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: #57534E;
  cursor: pointer;
  padding: 4px 6px;
}

/* Passbook Timeline (Chat stream) */
.passbook-timeline {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.passbook-timeline::-webkit-scrollbar {
  width: 4px;
}
.passbook-timeline::-webkit-scrollbar-thumb {
  background: #D6CEBE;
  border-radius: 4px;
}

.timeline-date-chip {
  align-self: center;
  background: rgba(0, 0, 0, 0.05);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #78716C;
  margin: 4px 0;
}

/* Chat-Style Ledger Bubbles */
.passbook-bubble {
  max-width: 86%;
  padding: 9px 12px 8px;
  border-radius: 14px;
  font-size: 0.82rem;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease;
  animation: bubblePop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes bubblePop {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Due Bubble: Aligned Right, Light Red */
.passbook-bubble--due {
  align-self: flex-end;
  background: #FDF1EE;
  border: 1.5px solid #F9A492;
  border-bottom-right-radius: 3px;
}
/* Paid Bubble: Aligned Left, Light Green */
.passbook-bubble--paid {
  align-self: flex-start;
  background: #EAF8EF;
  border: 1.5px solid #72D59B;
  border-bottom-left-radius: 3px;
}

.passbook-bubble__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
}
.passbook-bubble__tag {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.passbook-bubble--due .passbook-bubble__tag {
  background: #FEE2E2;
  color: #DC2626;
}
.passbook-bubble--paid .passbook-bubble__tag {
  background: #DCFCE7;
  color: #16A34A;
}
.passbook-bubble__time {
  font-size: 0.68rem;
  color: #78716C;
}

.passbook-bubble__amount {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 2px 0 4px;
  letter-spacing: -0.01em;
}
.passbook-bubble--due .passbook-bubble__amount {
  color: #DC2626;
}
.passbook-bubble--paid .passbook-bubble__amount {
  color: #16A34A;
}

.passbook-bubble__note {
  font-size: 0.8rem;
  font-weight: 600;
  color: #292524;
  margin-bottom: 6px;
  line-height: 1.35;
}

.passbook-bubble__balance-after {
  font-size: 0.68rem;
  color: #78716C;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  padding-top: 5px;
  display: flex;
  justify-content: space-between;
}

/* Bottom Pinned Dock in Passbook */
.passbook-dock {
  background: #FFFFFF;
  border-top: 1.5px solid #EBE5DC;
  padding: 10px 12px 8px;
  flex-shrink: 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}
.dock-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.dock-pill {
  padding: 6px 2px;
  border-radius: 8px;
  border: 1px solid #E7E2DA;
  background: #FAF7F2;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: #44403C;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dock-pill:hover {
  background: #F5ECE0;
  border-color: #936238;
  color: #936238;
  transform: translateY(-1px);
}
.dock-divider {
  height: 1px;
  background: #EFEAE2;
  margin: 8px 0;
}
.dock-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.dock-balance-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #78716C;
}
.dock-balance-value {
  font-size: 0.98rem;
  font-weight: 800;
  color: #DC2626;
  transition: transform 0.2s ease;
}
.dock-balance-value.pulse {
  animation: balPulse 0.35s ease;
}
@keyframes balPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Action helper hint pill */
.dock-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 12px;
  margin-bottom: 8px;
  background: #FFF8E6;
  border: 1px solid #F6D884;
  border-radius: 8px;
  color: #8C5800;
  font-size: 0.72rem;
  font-weight: 600;
  animation: hintPulse 2.5s infinite;
  transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}
@keyframes hintPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.dock-hint.dismissed {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: none;
}
[data-theme="dark"] .dock-hint {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.3);
  color: #FDE047;
}

/* Iconic Android Dual Split Buttons */
.dock-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-app-action {
  padding: 10px 0;
  border: none;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-app-action:active {
  transform: scale(0.96);
}
.btn-app-action--paid {
  background: #16A34A;
}
.btn-app-action--paid:hover {
  background: #15803D;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.35);
}
.btn-app-action--due {
  background: #DC2626;
}
.btn-app-action--due:hover {
  background: #B91C1C;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
}

/* SCREEN B: CUSTOMER LIST SCREEN (screenshot-1.png) */
.app-screen--customers .app-bar {
  height: 54px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border-bottom: 1px solid #EBE5DC;
  flex-shrink: 0;
}
.app-bar__biz {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  color: #292524;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.app-bar__biz:hover {
  background: #F5ECE0;
}
.app-bar__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.app-bar__icon-btn {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
.app-customer-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-customer-scroll::-webkit-scrollbar {
  width: 4px;
}
.app-customer-scroll::-webkit-scrollbar-thumb {
  background: #D6CEBE;
  border-radius: 4px;
}

/* Overall Ledger Summary Card */
.overall-card {
  background: linear-gradient(135deg, #FFF9F3 0%, #F5ECE0 100%);
  border: 1.5px solid #E2D3BE;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(147, 98, 56, 0.08);
}
.overall-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #78716C;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.overall-card__link {
  color: #936238;
  font-weight: 600;
  cursor: pointer;
}
.overall-card__label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #A8A29E;
  letter-spacing: 0.05em;
  margin-top: 6px;
}
.overall-card__balance {
  font-size: 1.45rem;
  font-weight: 800;
  color: #DC2626;
  margin: 2px 0 6px;
  letter-spacing: -0.02em;
}
.overall-card__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(220, 38, 38, 0.1);
  color: #DC2626;
}

/* In-App Search Bar */
.app-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid #E7E2DA;
  border-radius: 12px;
  padding: 7px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.app-search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.78rem;
  width: 100%;
  color: #292524;
  font-family: inherit;
}
.app-search-bar .search-icon {
  font-size: 0.85rem;
  color: #A8A29E;
}

/* Customer List Rows */
.app-cust-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 50px;
}
.app-cust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: #FFFFFF;
  border: 1px solid #EBE5DC;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.app-cust-row:hover {
  background: #FDFBFA;
  border-color: #936238;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.app-cust-row.active {
  background: #F5ECE0;
  border-color: #936238;
}
.app-cust-row__left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-cust-row__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #936238;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-cust-row__name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #292524;
  line-height: 1.25;
}
.app-cust-row__sub {
  font-size: 0.68rem;
  color: #78716C;
  line-height: 1.2;
}
.app-cust-row__right {
  text-align: right;
}
.app-cust-row__balance {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}
.app-cust-row__balance--due {
  color: #DC2626;
}
.app-cust-row__balance--advance {
  color: #16A34A;
}
.app-cust-row__balance--settled {
  color: #78716C;
}
.app-cust-row__badge {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}
.app-cust-row__badge--due {
  background: #FEE2E2;
  color: #DC2626;
}
.app-cust-row__badge--advance {
  background: #DCFCE7;
  color: #16A34A;
}
.app-cust-row__badge--settled {
  background: #F5F5F4;
  color: #78716C;
}

/* Floating Add Customer Action Button */
.app-fab {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: #936238;
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  padding: 9px 15px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(147, 98, 56, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  z-index: 10;
}
.app-fab:hover {
  transform: scale(1.04);
  background: #7A4E2A;
}

/* ANDROID MODAL BOTTOM SHEETS (screenshot-3.png & 9) */
.app-modal-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  z-index: 50;
  overflow: hidden;
}
.app-modal-layer.open {
  display: block;
}
.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(1.5px);
  animation: fadeInModal 0.2s ease;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.app-bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 88%;
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
  animation: sheetSlideUp 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Add Entry Header Banner */
.sheet-header {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFFFFF;
}
.sheet-header--due {
  background: #DC2626;
}
.sheet-header--paid {
  background: #16A34A;
}
.sheet-header__left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sheet-header__icon {
  font-size: 1.15rem;
  font-weight: 800;
}
.sheet-header__title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
}
.sheet-header__sub {
  font-size: 0.7rem;
  opacity: 0.92;
}
.sheet-header__close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #FFFFFF;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.15s ease;
}
.sheet-header__close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.sheet-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Amount Input Box */
.sheet-amount-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #FAF7F2;
  border: 2px solid #E7E2DA;
  border-radius: 12px;
  padding: 8px 14px;
}
.sheet-currency {
  font-size: 1.35rem;
  font-weight: 800;
  color: #936238;
}
.sheet-amount-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.55rem;
  font-weight: 800;
  color: #292524;
  width: 140px;
  text-align: center;
  font-family: inherit;
}

/* Quick Amount Chips */
.sheet-quick-chips {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.sheet-chip-amt {
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #E2D9CE;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: #57534E;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sheet-chip-amt:hover, .sheet-chip-amt.active {
  border-color: #936238;
  background: #F5ECE0;
  color: #936238;
}

/* Note Field & Quick Note Chips */
.sheet-input-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sheet-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #78716C;
}
.sheet-text-input {
  border: 1.5px solid #D6CEBE;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-family: inherit;
  color: #292524;
  outline: none;
  transition: border-color 0.15s ease;
}
.sheet-text-input:focus {
  border-color: #936238;
}

.sheet-note-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.sheet-chip-note {
  padding: 4px 9px;
  border-radius: 9999px;
  border: 1px solid #E2D9CE;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: #57534E;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sheet-chip-note:hover {
  border-color: #936238;
}
.sheet-chip-note.active {
  background: #936238;
  color: #FFFFFF;
  border-color: #936238;
}

.sheet-date-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: #78716C;
  padding: 2px 2px;
}
.sheet-date-change {
  color: #936238;
  font-weight: 600;
  cursor: pointer;
}

.sheet-notify-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sheet-checkbox-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #E7E2DA;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #44403C;
  cursor: pointer;
  background: #FAF7F2;
}
.sheet-checkbox-card input[type="checkbox"] {
  accent-color: #936238;
  width: 14px;
  height: 14px;
}

.sheet-submit-btn {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFFFFF;
  cursor: pointer;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
}
.sheet-submit-btn:active {
  transform: scale(0.98);
}
.sheet-submit-btn--due {
  background: #DC2626;
}
.sheet-submit-btn--due:hover {
  background: #B91C1C;
}
.sheet-submit-btn--paid {
  background: #16A34A;
}
.sheet-submit-btn--paid:hover {
  background: #15803D;
}

/* WhatsApp Reminder Preview Sheet */
.app-bottom-sheet--wa {
  border-top: 3px solid #075E54;
}
.wa-sheet-header {
  padding: 10px 14px;
  background: #075E54;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wa-sheet-title {
  font-size: 0.86rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wa-sheet-body {
  padding: 14px;
  background: #EFEAE2;
  background-image: radial-gradient(#d3c8ba 1px, transparent 1px);
  background-size: 16px 16px;
}
.wa-chat-canvas {
  margin-bottom: 12px;
}
.wa-bubble {
  background: #DCF8C6;
  color: #111B21;
  padding: 10px 12px 6px;
  border-radius: 10px 0 10px 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.wa-time-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: #667781;
  margin-top: 4px;
}
.wa-ticks {
  color: #34B7F1;
  font-weight: 700;
}
.wa-actions-row {
  display: flex;
  gap: 8px;
}
.wa-btn-send {
  flex: 1;
  background: #25D366;
  color: #075E54;
  font-weight: 700;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.wa-btn-send:hover {
  background: #20BA5A;
}

/* Multi-Business Switcher Bottom Sheet */
.biz-sheet-handle {
  width: 36px;
  height: 4px;
  background: #D6CEBE;
  border-radius: 4px;
  margin: 10px auto 10px;
}
.biz-sheet-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #292524;
  padding: 0 16px;
}
.biz-sheet-sub {
  font-size: 0.72rem;
  color: #78716C;
  padding: 0 16px 10px;
  border-bottom: 1px solid #EFEAE2;
}
.biz-list {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.biz-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid #EFEAE2;
  background: #FAF7F2;
  cursor: pointer;
  transition: all 0.15s ease;
}
.biz-item:hover {
  border-color: #936238;
}
.biz-item.active {
  border-color: #936238;
  background: #F5ECE0;
}
.biz-item__icon {
  font-size: 1.25rem;
}
.biz-item__details {
  flex: 1;
}
.biz-item__name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #292524;
}
.biz-item__badge {
  font-size: 0.68rem;
  color: #78716C;
}
.biz-item__check {
  color: #936238;
  font-weight: 800;
  font-size: 1rem;
}
.biz-add-btn {
  margin: 4px 14px 14px;
  width: calc(100% - 28px);
  border-style: dashed;
}

/* Android Bottom Pill Bar */
.phone-nav-bar {
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAF7F2;
  flex-shrink: 0;
}
.phone-nav-bar::before {
  content: "";
  width: 76px;
  height: 3.5px;
  background: #A8A29E;
  border-radius: 4px;
}



/* Floating Celebration Particle Badge */
.tally-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: floatUpFade 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.particle-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.08);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.92rem;
  backdrop-filter: blur(10px);
}
.tally-particle--due .particle-badge {
  color: #DC2626;
  border: 1.5px solid #FCA5A5;
}
.tally-particle--paid .particle-badge {
  color: #16A34A;
  border: 1.5px solid #86EFAC;
}
[data-theme="dark"] .particle-badge {
  background: rgba(28, 26, 23, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .tally-particle--due .particle-badge {
  color: #F87171;
  border-color: #991B1B;
}
[data-theme="dark"] .tally-particle--paid .particle-badge {
  color: #4ADE80;
  border-color: #166534;
}
@keyframes floatUpFade {
  0% { opacity: 0; transform: translate(0, 10px) scale(0.85); }
  20% { opacity: 1; transform: translate(0, 0) scale(1.05); }
  80% { opacity: 1; transform: translate(6px, -45px) scale(1); }
  100% { opacity: 0; transform: translate(12px, -75px) scale(0.92); }
}

/* DARK THEME STYLING OVERRIDES FOR PHONE */
[data-theme="dark"] .demo {
  background: #121110;
}
[data-theme="dark"] .phone-device {
  border-color: #38342E;
  background: #121110;
}
[data-theme="dark"] .phone-screen {
  background: #161412;
}
[data-theme="dark"] .phone-status-bar {
  color: #A8A29E;
}
[data-theme="dark"] .phone-nav-bar {
  background: #161412;
}
[data-theme="dark"] .phone-nav-bar::before {
  background: #44403C;
}

/* Dark mode passbook */
[data-theme="dark"] .app-screen--passbook .app-bar {
  background: #1F1C18;
  border-bottom-color: #2E2A26;
}
[data-theme="dark"] .app-bar__title,
[data-theme="dark"] .app-bar__back,
[data-theme="dark"] .app-bar__menu {
  color: #FAF6EF;
}
[data-theme="dark"] .timeline-date-chip {
  background: rgba(255, 255, 255, 0.08);
  color: #A8A29E;
}
[data-theme="dark"] .passbook-bubble--due {
  background: #2D1412;
  border-color: #7F1D1D;
}
[data-theme="dark"] .passbook-bubble--due .passbook-bubble__note {
  color: #FEE2E2;
}
[data-theme="dark"] .passbook-bubble--due .passbook-bubble__balance-after {
  border-top-color: rgba(255, 255, 255, 0.1);
  color: #F87171;
}
[data-theme="dark"] .passbook-bubble--paid {
  background: #122416;
  border-color: #14532D;
}
[data-theme="dark"] .passbook-bubble--paid .passbook-bubble__note {
  color: #DCFCE7;
}
[data-theme="dark"] .passbook-bubble--paid .passbook-bubble__balance-after {
  border-top-color: rgba(255, 255, 255, 0.1);
  color: #4ADE80;
}
[data-theme="dark"] .passbook-dock {
  background: #1F1C18;
  border-top-color: #2E2A26;
}
[data-theme="dark"] .dock-pill {
  background: #161412;
  border-color: #2E2A26;
  color: #FAF6EF;
}
[data-theme="dark"] .dock-divider {
  background: #2E2A26;
}
[data-theme="dark"] .dock-balance-label {
  color: #A8A29E;
}

/* Dark mode customer list */
[data-theme="dark"] .app-screen--customers .app-bar {
  background: #1F1C18;
  border-bottom-color: #2E2A26;
}
[data-theme="dark"] .app-bar__biz {
  color: #FAF6EF;
}
[data-theme="dark"] .overall-card {
  background: linear-gradient(135deg, #24201C 0%, #1A1815 100%);
  border-color: #38342E;
}
[data-theme="dark"] .app-search-bar {
  background: #1F1C18;
  border-color: #2E2A26;
}
[data-theme="dark"] .app-search-bar input {
  color: #FAF6EF;
}
[data-theme="dark"] .app-cust-row {
  background: #1F1C18;
  border-color: #2A2622;
}
[data-theme="dark"] .app-cust-row:hover {
  background: #26221E;
  border-color: #C99668;
}
[data-theme="dark"] .app-cust-row.active {
  background: #26221E;
}
[data-theme="dark"] .app-cust-row__name {
  color: #FAF6EF;
}

/* Dark mode modals */
[data-theme="dark"] .app-bottom-sheet {
  background: #1F1C18;
  border: 1px solid #38342E;
}
[data-theme="dark"] .sheet-amount-box {
  background: #161412;
  border-color: #2E2A26;
}
[data-theme="dark"] .sheet-amount-input {
  color: #FAF6EF;
}
[data-theme="dark"] .sheet-chip-amt {
  background: #161412;
  border-color: #2E2A26;
  color: #D6CEBE;
}
[data-theme="dark"] .sheet-text-input {
  background: #161412;
  border-color: #2E2A26;
  color: #FAF6EF;
}
[data-theme="dark"] .sheet-chip-note {
  background: #161412;
  border-color: #2E2A26;
  color: #D6CEBE;
}
[data-theme="dark"] .sheet-checkbox-card {
  background: #161412;
  border-color: #2E2A26;
  color: #FAF6EF;
}
[data-theme="dark"] .biz-sheet-title {
  color: #FAF6EF;
}
[data-theme="dark"] .biz-item {
  background: #161412;
  border-color: #2E2A26;
}
[data-theme="dark"] .biz-item__name {
  color: #FAF6EF;
}
[data-theme="dark"] .biz-item.active {
  background: #24201C;
  border-color: #C99668;
}
[data-theme="dark"] .app-bottom-sheet--wa .wa-sheet-body {
  background: #0B141A;
  background-image: radial-gradient(#1f2c34 1px, transparent 1px);
}
[data-theme="dark"] .app-bottom-sheet--wa .wa-bubble {
  background: #005C4B;
  color: #E9EDEF;
}
[data-theme="dark"] .app-bottom-sheet--wa .wa-time-row {
  color: #8696A0;
}

/* Responsive Layout */
@media (max-width: 480px) {
  .phone-device {
    max-width: 100%;
    height: 680px;
    border-width: 8px;
    border-radius: 36px;
  }
}

/* === SCREENSHOTS GALLERY & CAROUSEL === */
.screenshots {
  position: relative;
  background: var(--color-bg);
  padding: 80px 0 90px;
}

.screenshots__header {
  margin-bottom: 32px;
}

.screenshots__filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.screenshots__filters button,
.screenshots__filters .filter-pill,
.filter-pill,
button.filter-pill {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border-radius: 9999px;
  background: var(--color-card, #FFFFFF);
  border: 1.5px solid var(--color-border, #E4D8C8);
  color: var(--color-muted, #786C5E);
  font-family: var(--font, 'Poppins', sans-serif);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  outline: none;
  user-select: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.screenshots__filters button:hover,
.screenshots__filters .filter-pill:hover,
.filter-pill:hover,
button.filter-pill:hover {
  border-color: var(--color-primary, #936238);
  color: var(--color-primary, #936238);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(147, 98, 56, 0.2);
}

.screenshots__filters button.active,
.screenshots__filters .filter-pill.active,
.filter-pill.active,
button.filter-pill.active {
  background: var(--color-primary, #936238) !important;
  color: #ffffff !important;
  border-color: var(--color-primary, #936238) !important;
  box-shadow: 0 4px 16px rgba(147, 98, 56, 0.38);
  transform: translateY(-1px);
}

.screenshots__filters button:focus-visible,
.filter-pill:focus-visible {
  outline: 2px solid var(--color-primary, #936238);
  outline-offset: 2px;
}

[data-theme="dark"] .screenshots__filters button,
[data-theme="dark"] .screenshots__filters .filter-pill,
[data-theme="dark"] .filter-pill,
[data-theme="dark"] button.filter-pill {
  background: #1C1A17;
  border-color: #2E2A26;
  color: #A8A29E;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .screenshots__filters button:hover,
[data-theme="dark"] .screenshots__filters .filter-pill:hover,
[data-theme="dark"] .filter-pill:hover,
[data-theme="dark"] button.filter-pill:hover {
  border-color: var(--color-primary, #936238);
  color: var(--color-primary, #936238);
}

[data-theme="dark"] .screenshots__filters button.active,
[data-theme="dark"] .screenshots__filters .filter-pill.active,
[data-theme="dark"] .filter-pill.active,
[data-theme="dark"] button.filter-pill.active {
  background: var(--color-primary, #936238) !important;
  color: #ffffff !important;
  border-color: var(--color-primary, #936238) !important;
  box-shadow: 0 4px 18px rgba(147, 98, 56, 0.45);
}

/* Carousel wrapper */
.screenshots__carousel-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.screenshots__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-card, #FFFFFF);
  border: 1.5px solid var(--color-border, #E4D8C8);
  color: var(--color-primary, #936238);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.screenshots__nav-btn--prev {
  left: 20px;
}

.screenshots__nav-btn--next {
  right: 20px;
}

.screenshots__nav-btn:hover {
  background: var(--color-primary, #936238);
  color: #ffffff;
  border-color: var(--color-primary, #936238);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(147, 98, 56, 0.35);
}

.screenshots__nav-btn:disabled,
.screenshots__nav-btn.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-50%) scale(0.9);
}

[data-theme="dark"] .screenshots__nav-btn {
  background: rgba(28, 26, 23, 0.92);
  border-color: #38342E;
  color: #FAF6EF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .screenshots__nav-btn:hover {
  background: var(--color-primary, #936238);
  color: #ffffff;
  border-color: var(--color-primary, #936238);
}

/* Track window: smooth horizontal scroll container without capturing vertical page scroll */
.screenshots__track-window {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  position: relative;
}

.screenshots__track-window::-webkit-scrollbar {
  display: none;
}

.screenshots__track-window.is-centered {
  display: flex;
  justify-content: center;
}

.screenshots__track {
  display: flex;
  gap: 24px;
  padding: 16px 80px 32px;
  width: max-content;
  outline: none;
}

.screenshots__track.is-centered {
  margin: 0 auto;
  justify-content: center;
  padding-left: 24px;
  padding-right: 24px;
}

.screenshot-item {
  flex-shrink: 0;
  width: clamp(210px, 20vw, 275px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.09);
  border: 2px solid var(--color-border);
  background: var(--color-card);
  cursor: pointer;
  scroll-snap-align: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.screenshot-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 45px rgba(147, 98, 56, 0.25);
  border-color: var(--color-primary);
}

.screenshot-item__img-wrap {
  position: relative;
  overflow: hidden;
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.screenshot-item:hover img {
  transform: scale(1.02);
}

.screenshot-item__zoom-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.2s ease;
}

.screenshot-item:hover .screenshot-item__zoom-badge {
  opacity: 1;
  transform: translateY(0);
}

.screenshot-item__label {
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-dark);
  padding: 11px 10px;
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  line-height: 1.35;
}

/* Minimalist Scrubber Track under screenshots */
.screenshots__scrubber {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(240px, 60vw);
  margin: 22px auto 0;
  padding: 10px 0;
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.screenshots__scrubber.is-hidden {
  display: none !important;
}

.screenshots__scrubber-track {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(147, 98, 56, 0.16);
  border-radius: 9999px;
  overflow: hidden;
  transition: height 0.2s ease, background 0.2s ease;
}

.screenshots__scrubber:hover .screenshots__scrubber-track,
.screenshots__scrubber.is-dragging .screenshots__scrubber-track {
  height: 6px;
  background: rgba(147, 98, 56, 0.26);
}

[data-theme="dark"] .screenshots__scrubber-track {
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .screenshots__scrubber:hover .screenshots__scrubber-track,
[data-theme="dark"] .screenshots__scrubber.is-dragging .screenshots__scrubber-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.22);
}

.screenshots__scrubber-thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 28%;
  min-width: 36px;
  background: var(--color-primary);
  border-radius: 9999px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  box-shadow: 0 1px 4px rgba(147, 98, 56, 0.35);
  transition: background 0.2s ease;
}

[data-theme="dark"] .screenshots__scrubber-thumb {
  background: #C99668;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
  .screenshots {
    padding: 60px 0 70px;
  }
  .screenshots__track {
    padding: 12px 20px 16px;
    gap: 16px;
  }
  .screenshot-item {
    width: 220px;
  }
  .screenshots__nav-btn {
    display: none;
  }
  .screenshots__scrubber {
    margin-top: 14px;
    width: min(180px, 50vw);
  }
}

/* === DOWNLOAD SHOWCASE SECTION === */
.download {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-bg) 0%, #EFE8DC 100%);
}
[data-theme="dark"] .download {
  background: linear-gradient(180deg, var(--color-bg) 0%, #15120F 100%);
}

.download__header {
  text-align: center;
  margin-bottom: 28px;
}

.download__card {
  position: relative;
  background: linear-gradient(135deg, #241D17 0%, #1A1512 60%, #2A1F16 100%);
  border: 1px solid rgba(201, 150, 104, 0.28);
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(28, 25, 23, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
}
[data-theme="dark"] .download__card {
  background: linear-gradient(135deg, #181410 0%, #100D0B 60%, #1A1511 100%);
  border-color: rgba(201, 150, 104, 0.2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(201, 150, 104, 0.15);
}

/* Ambient Radial Glow inside card */
.download__card-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(201, 150, 104, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.download__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(201, 150, 104, 0.14);
  border: 1px solid rgba(201, 150, 104, 0.28);
  color: #F3E3CE;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.download__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
}

.download__title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.download__sub {
  color: #D6CEBE;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 34px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Value Pillars Strip */
.download__pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}
.pillar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #E7DFD3;
  font-size: 0.84rem;
  font-weight: 500;
}
.pillar-icon {
  font-size: 0.95rem;
}

/* Download Action Buttons */
.download__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
  font-family: var(--font);
}
.btn-store:hover {
  transform: translateY(-3px);
}

/* Play Store Button */
.btn-store--play {
  background: #FFFFFF;
  color: #1F1A15;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
.btn-store--play:hover {
  background: #FFFBF5;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}
.btn-store__labels {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}
.btn-store__sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.75;
}
.btn-store__main {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Direct APK Button */
.btn-store--apk {
  background: rgba(201, 150, 104, 0.16);
  border: 1.5px solid rgba(201, 150, 104, 0.4);
  color: #FDE68A;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.btn-store--apk:hover {
  background: rgba(201, 150, 104, 0.26);
  border-color: rgba(201, 150, 104, 0.65);
  color: #FFFFFF;
  box-shadow: 0 14px 30px rgba(201, 150, 104, 0.2);
}

/* Share Button */
.btn-store--share {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  color: #E7DFD3;
  padding: 14px 20px;
}
.btn-store--share:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}
.btn-store__text {
  font-size: 0.92rem;
  font-weight: 600;
}

/* Refined APK Note */
.download__note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  color: #A8A29E;
  font-size: 0.8rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.45;
}
.download__note-dot {
  font-size: 1rem;
}
.download__note-text strong {
  color: #E7DFD3;
}
.download__note-text em {
  color: #FDE68A;
  font-style: normal;
}

/* === BEAUTIFIED FOOTER WITH BAZAAR HORIZON & MULTI-COLUMN INFORMATION === */
.footer {
  position: relative;
  background: #110E0B;
  color: #8C847A;
  padding: 0 0 36px;
  overflow: hidden;
  border-top: 1px solid rgba(201, 150, 104, 0.18);
}
[data-theme="dark"] .footer {
  background: #0B0907;
  border-top-color: rgba(201, 150, 104, 0.15);
}

/* Atmospheric Evening Skyline & Cyclist Horizon */
.footer__sky-scene {
  position: relative;
  width: 100%;
  height: 56px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(147, 98, 56, 0.12) 0%, rgba(17, 14, 11, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 48px;
}
.footer__skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  color: #211B15;
  pointer-events: none;
}
[data-theme="dark"] .footer__skyline {
  color: #17120E;
}
.footer__skyline svg {
  width: 100%;
  height: 100%;
  display: block;
}
.footer__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.footer__stars .fstar {
  position: absolute;
  color: #FDE68A;
  font-size: 0.62rem;
  opacity: 0.35;
  animation: starTwinkle 3.2s ease-in-out infinite alternate;
}
.footer__stars .fstar:nth-child(2n) {
  font-size: 0.78rem;
  animation-delay: -1.2s;
  color: #FFFDF0;
  opacity: 0.45;
}
.footer__stars .fstar:nth-child(3n) {
  animation-delay: -2s;
  opacity: 0.28;
}

.footer__rider {
  position: absolute;
  bottom: 0px;
  left: -70px;
  color: var(--color-primary-light, #E2A066);
  opacity: 0.95;
  animation: footerRiderCycle 22s linear infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}
@keyframes footerRiderCycle {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(100vw + 110px)); }
}

/* Realistic Multi-Part Cycling Animations */
.cycle-spokes--back {
  transform-origin: 16px 26px;
  animation: spokeSpin 0.65s linear infinite;
}
.cycle-spokes--front {
  transform-origin: 52px 26px;
  animation: spokeSpin 0.65s linear infinite;
}
@keyframes spokeSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cycle-crank {
  transform-origin: 34px 26px;
  animation: crankSpin 1.1s linear infinite;
}
@keyframes crankSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Alternate Pedaling Legs with Anatomical Articulation */
.cycle-leg--front {
  animation: legPedalFront 1.1s linear infinite;
}
@keyframes legPedalFront {
  0%, 100% { d: path("M28,13 L38,19 L38.5,26"); }
  25%       { d: path("M28,13 L35,23 L34,30.5"); }
  50%       { d: path("M28,13 L29,20 L29.5,26"); }
  75%       { d: path("M28,13 L34,15 L34,21.5"); }
}

.cycle-leg--back {
  animation: legPedalBack 1.1s linear infinite;
}
@keyframes legPedalBack {
  0%, 100% { d: path("M28,13 L29,20 L29.5,26"); }
  25%       { d: path("M28,13 L34,15 L34,21.5"); }
  50%       { d: path("M28,13 L38,19 L38.5,26"); }
  75%       { d: path("M28,13 L35,23 L34,30.5"); }
}

/* Cyclist Cadence Rocking */
.cycle-rider-upper {
  transform-origin: 28px 13px;
  animation: cyclistCadence 1.1s ease-in-out infinite;
}
@keyframes cyclistCadence {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25%       { transform: rotate(-1.2deg) translateY(-0.8px); }
  50%       { transform: rotate(0.8deg) translateY(0.4px); }
  75%       { transform: rotate(-0.8deg) translateY(-0.6px); }
}

/* Road Vibration & Frame Bounce */
.cycle-bike-group {
  animation: bikeRoadBounce 0.55s ease-in-out infinite alternate;
}
@keyframes bikeRoadBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-0.6px); }
}
.footer__ground-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(201, 150, 104, 0.3), rgba(201, 150, 104, 0.5), transparent);
}

/* Footer Container & Grid */
.footer__container {
  position: relative;
  z-index: 2;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1.1fr 1.4fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* Column 1: Brand */
.footer__col--brand {
  max-width: 360px;
}
.footer__brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
}
.footer__brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}
.footer__brand-desc {
  font-size: 0.86rem;
  line-height: 1.6;
  color: #9C958A;
  margin-bottom: 18px;
}
.footer__trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9999px;
  font-size: 0.72rem;
  color: #D6CEBE;
}
.trust-shield {
  font-size: 0.85rem;
}

/* Headings */
.footer__heading {
  font-size: 0.84rem;
  font-weight: 700;
  color: #E7DFD3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

/* Navigation List */
.footer__nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__nav-list a {
  color: #9C958A;
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.footer__nav-list a:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

/* Developer Column */
.footer__dev-text {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #9C958A;
  margin-bottom: 16px;
}
.footer__dev-text strong {
  color: #FFFFFF;
}
.footer__dev-heart {
  color: #EF4444;
  display: inline-block;
  animation: heartPulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.5));
}
.footer__contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(201, 150, 104, 0.12);
  border: 1px solid rgba(201, 150, 104, 0.24);
  color: var(--color-primary-light, #E2A066);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}
.footer__contact-pill:hover {
  background: rgba(201, 150, 104, 0.22);
  border-color: rgba(201, 150, 104, 0.5);
  color: #FFFFFF;
  transform: translateY(-2px);
}
.footer__back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #9C958A;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__back-btn:hover {
  color: #FFFFFF;
}
.back-arrow {
  color: #C99668;
}

/* Bottom Copyright Bar */
.footer__bottom-bar {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #736C63;
}
.footer__signature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer__sep {
  color: #4A443D;
}

/* === LIGHTBOX MODAL (Section 9 enhancement) === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 24px;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
}
.lightbox__content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox__close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
  user-select: none;
  line-height: 1;
}
.lightbox__nav:hover {
  background: var(--color-primary);
  transform: translateY(-50%) scale(1.08);
}
.lightbox__nav--prev {
  left: -64px;
}
.lightbox__nav--next {
  right: -64px;
}
@media (max-width: 768px) {
  .lightbox__nav--prev {
    left: -12px;
    background: rgba(15, 23, 42, 0.9);
  }
  .lightbox__nav--next {
    right: -12px;
    background: rgba(15, 23, 42, 0.9);
  }
}
.lightbox__img {
  max-height: 75vh;
  max-width: 100%;
  border-radius: 28px;
  border: 4px solid #0F172A;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.lightbox__caption {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 14px;
  text-align: center;
}

/* === TOAST NOTIFICATION (Section 9 enhancement) === */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: var(--color-dark);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}
.toast.toast--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* === SCROLL REVEAL ANIMATION === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero__cta {
    justify-content: center;
  }
  .hero__sub {
    margin: 0 auto;
  }
  .badge {
    align-self: center;
  }
  .hero__mockup {
    order: -1;
  }
  .hero-device {
    max-width: 260px;
    transform: rotate(0deg);
  }
  .stats__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 116px;
  }
  .nav__links {
    display: none;
  }
  .nav__hamburger {
    display: inline-flex;
  }
  .nav__mobile-strip {
    display: block;
  }
  .how__steps {
    flex-direction: column;
    align-items: center;
  }
  .step {
    padding: 16px 0;
  }
  .step__divider {
    width: 52px;
    height: 2px;
    margin: 4px auto;
  }
  .screenshots__track {
    padding: 16px 20px 28px;
  }
  .screenshot-item {
    width: clamp(210px, 46vw, 240px);
  }

  /* Download Showcase Responsive */
  .download {
    padding: 60px 0 80px;
  }
  .download__card {
    padding: 44px 24px;
    border-radius: 22px;
  }
  .download__sub {
    font-size: 0.98rem;
    margin-bottom: 28px;
  }
  .download__actions {
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
  .btn-store {
    width: 100%;
    justify-content: center;
  }
  .download__note {
    border-radius: 14px;
    text-align: left;
    align-items: flex-start;
  }

  /* Footer Responsive */
  .footer__sky-scene {
    height: 48px;
    margin-bottom: 36px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__col--brand {
    max-width: 100%;
  }
  .footer__bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer__signature {
    flex-direction: column;
    gap: 6px;
  }
  .footer__sep {
    display: none;
  }

  .toast {
    left: 20px;
    right: 20px;
    bottom: 20px;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .stats__inner {
    grid-template-columns: 1fr;
  }
  .phone-btn-hw {
    display: none;
  }
  .download__card {
    padding: 36px 16px;
  }
  .download__badge {
    font-size: 0.72rem;
    padding: 5px 12px;
  }
  .download__title {
    font-size: 1.85rem;
  }
  .download__sub {
    font-size: 0.92rem;
    margin-bottom: 22px;
  }
  .pillar-item {
    font-size: 0.78rem;
    padding: 6px 12px;
  }
}

@media (max-width: 540px) {
  .nav__download-desktop {
    display: none;
  }
  .nav__actions {
    gap: 8px;
  }
}

/* === RELEASES / CHANGELOG PAGE === */
.releases-page {
  padding: 60px 0 100px;
}

.releases-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.releases-hero__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-dark);
  margin: 14px 0 12px;
  line-height: 1.25;
}

.releases-hero__sub {
  font-size: 1.02rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.releases-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.release-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.release-stat-pill .highlight {
  color: var(--color-primary);
  font-weight: 700;
}

.release-timeline {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.release-card {
  background: var(--color-card);
  border: 1.5px solid var(--color-border);
  border-radius: 24px;
  padding: 44px;
  box-shadow: 0 12px 36px rgba(28, 25, 23, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.release-card:hover {
  box-shadow: 0 18px 45px rgba(147, 98, 56, 0.12);
}

[data-theme="dark"] .release-card {
  background: #1C1A17;
  border-color: #2E2A26;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.release-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 26px;
}

.release-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.release-version {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font);
  letter-spacing: -0.02em;
}

.release-badge-latest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(35, 107, 72, 0.12);
  color: var(--color-green);
  border: 1px solid rgba(35, 107, 72, 0.28);
  font-size: 0.78rem;
  font-weight: 700;
}

[data-theme="dark"] .release-badge-latest {
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.35);
  color: #34D399;
}

.release-date {
  font-size: 0.88rem;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.release-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.release-card__desc {
  font-size: 0.98rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.release-section {
  margin-bottom: 28px;
}

.release-section__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 14px;
}

.release-section__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.release-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.release-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.6;
}

.release-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: -1px;
  color: var(--color-primary);
  font-size: 1.3rem;
  line-height: 1;
}

.release-quick-summary {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 34px;
}
.release-quick-summary__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.release-quick-summary__header .summary-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.release-quick-summary__header strong {
  font-size: 1.02rem;
  color: var(--color-dark);
}
.release-quick-summary__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.release-quick-summary__list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.6;
}
.release-quick-summary__list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: -1px;
  color: var(--color-primary);
  font-size: 1.25rem;
}
[data-theme="dark"] .release-quick-summary {
  background: #161412;
  border-color: #2E2A26;
  border-left-color: var(--color-primary);
}

.release-download-box {
  background: linear-gradient(135deg, rgba(147, 98, 56, 0.08) 0%, rgba(147, 98, 56, 0.02) 100%);
  border: 1.5px dashed rgba(147, 98, 56, 0.35);
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
}

[data-theme="dark"] .release-download-box {
  background: rgba(201, 150, 104, 0.06);
  border-color: rgba(201, 150, 104, 0.28);
}

.release-download-box__left h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.release-download-box__left p {
  font-size: 0.84rem;
  color: var(--color-muted);
}

.release-download-box__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(147, 98, 56, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.release-download-box__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(147, 98, 56, 0.45);
  background: var(--color-primary-dark);
  color: #ffffff;
}

@media (max-width: 640px) {
  .releases-page {
    padding: 40px 0 70px;
  }
  .release-card {
    padding: 26px 20px;
    border-radius: 20px;
  }
  .release-card__top {
    flex-direction: column;
    align-items: flex-start;
  }
  .release-download-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .release-download-box__btn {
    justify-content: center;
  }
}

