/* ExamsPrep — Main Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  /* Logo Dual-Blue Palette (Exams = Dark Navy #1E2856, Prep = Light Blue #0284C7) */
  --brand-navy-dark: #1E2856;
  --brand-blue-light: #0284C7;
  --brand-blue-hover: #0369A1;

  --ep-primary-blue: var(--brand-blue-light);
  --ep-navy-dark: var(--brand-navy-dark);
  --ep-blue-hover: var(--brand-blue-hover);
  --ep-blue-light: #F0F9FF;
  --ep-blue-border: #BAE6FD;
  
  /* Canvas & Base Neutral Tones */
  --ep-canvas-bg: #F8FAFC;
  --ep-card-bg: #FFFFFF;
  --ep-text-title: #1E2856;
  --ep-text-body: #334155;
  --ep-text-muted: #64748B;
  --ep-border-light: #E2E8F0;
  --ep-border-subtle: #F1F5F9;

  /* Soft Pastel Accents */
  --pastel-cyan-bg: #F0F9FF;
  --pastel-cyan-border: #BAE6FD;
  --pastel-cyan-text: #0284C7;

  --pastel-navy-bg: #EEF2F9;
  --pastel-navy-border: #C5CEE0;
  --pastel-navy-text: #1E2856;

  --pastel-emerald-bg: #ECFDF5;
  --pastel-emerald-border: #A7F3D0;
  --pastel-emerald-text: #047857;

  --pastel-amber-bg: #FFFBEB;
  --pastel-amber-border: #FDE68A;
  --pastel-amber-text: #B45309;

  /* Teal — complementary cool accent, brand-adjacent (replaces off-brand purple) */
  --pastel-purple-bg: #F0FDFA;
  --pastel-purple-border: #99F6E4;
  --pastel-purple-text: #0F766E;

  --pastel-rose-bg: #FFF1F2;
  --pastel-rose-border: #FECDD3;
  --pastel-rose-text: #BE123C;

  /* Typography */
  --ep-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Radius & Soft Depth Shadows */
  --ep-radius-xl: 28px;
  --ep-radius-lg: 20px;
  --ep-radius-md: 14px;
  --ep-radius-sm: 10px;
  --ep-shadow-soft: 0 10px 30px -5px rgba(30, 40, 86, 0.05);
  --ep-shadow-card: 0 14px 35px -10px rgba(2, 132, 199, 0.15);
  --ep-shadow-stacked: 0 20px 40px -15px rgba(30, 40, 86, 0.1);
  --ep-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Bootstrap Button & Utility Brand Harmonization */
.btn-primary,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  background-color: var(--brand-blue-light) !important;
  border-color: var(--brand-blue-light) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
}

.btn-primary:hover,
.show > .btn-primary.dropdown-toggle:hover {
  background-color: var(--brand-blue-hover) !important;
  border-color: var(--brand-blue-hover) !important;
  color: #FFFFFF !important;
}

.btn-navy,
.btn-navy:focus,
.btn-navy:active,
.btn-navy.active {
  background-color: var(--brand-navy-dark) !important;
  border-color: var(--brand-navy-dark) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(30, 40, 86, 0.3) !important;
}

.btn-navy:hover {
  background-color: #151C3D !important;
  border-color: #151C3D !important;
  color: #FFFFFF !important;
}

.btn-outline-primary {
  color: var(--brand-blue-light) !important;
  border-color: var(--brand-blue-light) !important;
  background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active,
.show > .btn-outline-primary.dropdown-toggle {
  background-color: var(--brand-blue-light) !important;
  color: #FFFFFF !important;
  border-color: var(--brand-blue-light) !important;
}

.btn-outline-navy {
  color: var(--brand-navy-dark) !important;
  border-color: var(--brand-navy-dark) !important;
  background-color: transparent !important;
}

.btn-outline-navy:hover {
  background-color: var(--brand-navy-dark) !important;
  color: #FFFFFF !important;
}

.text-primary {
  color: var(--brand-blue-light) !important;
}

.text-navy {
  color: var(--brand-navy-dark) !important;
}

.bg-primary {
  background-color: var(--brand-blue-light) !important;
}

.bg-navy {
  background-color: var(--brand-navy-dark) !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--ep-font-family);
  background-color: var(--ep-canvas-bg);
  color: var(--ep-text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ep-font-family);
  font-weight: 700;
  color: var(--ep-text-title);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--ep-transition);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--ep-canvas-bg);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

/* Sticky Light Header Navigation */
.navbar-custom {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ep-border-light);
  padding: 0.85rem 0;
  transition: var(--ep-transition);
}

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

.brand-logo-img {
  height: 38px;
  width: auto;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
  border: 1px solid var(--ep-border-light);
}

.brand-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ep-text-title);
  letter-spacing: -0.03em;
}

.brand-text span {
  color: var(--ep-primary-blue);
}

.nav-link-custom {
  color: #475569 !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--ep-radius-sm);
  transition: var(--ep-transition);
}

.nav-link-custom:hover {
  color: var(--ep-primary-blue) !important;
  background: var(--ep-blue-light);
}

.btn-ep-header,
.btn-ep-header.dropdown-toggle.show,
.btn-ep-header:focus,
.btn-ep-header:active,
.btn-ep-header.active,
.show > .btn-ep-header.dropdown-toggle {
  background: var(--ep-primary-blue) !important;
  color: #FFFFFF !important;
  border-color: var(--ep-primary-blue) !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.3rem;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4) !important;
  transition: var(--ep-transition);
}

.btn-ep-header:hover,
.btn-ep-header.dropdown-toggle.show:hover {
  background: var(--ep-blue-hover) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

.dropdown .btn-outline-primary.dropdown-toggle.show,
.dropdown .btn-outline-primary:focus,
.dropdown .btn-outline-primary:active,
.product-card .dropdown-toggle.show,
.product-card .dropdown-toggle:focus,
.product-card .dropdown-toggle:active {
  background-color: var(--ep-primary-blue) !important;
  color: #FFFFFF !important;
  border-color: var(--ep-primary-blue) !important;
}

/* Hero Download Dropdown Buttons */
.hero-download-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
}

.hero-dl-dropdown-btn {
  background: #FFFFFF;
  border: 1px solid var(--ep-border-light);
  border-radius: var(--ep-radius-lg);
  padding: 0.75rem 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: var(--ep-transition);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--ep-text-title);
}

.hero-dl-dropdown-btn:hover,
.hero-dl-dropdown-btn.show {
  border-color: var(--ep-primary-blue);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.15);
  transform: translateY(-2px);
  background: #FFFFFF !important;
  color: var(--ep-text-title) !important;
}

.download-badge-group {
  position: relative;
  z-index: 25;
}

.dropdown-menu {
  border-radius: 16px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  z-index: 1060 !important;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 #F1F5F9;
}

/* Custom Sleek Scrollbar for Webkit Browsers */
.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 10px;
  margin: 6px 0;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: var(--ep-primary-blue);
}

.dropdown-item:hover {
  background-color: var(--pastel-cyan-bg) !important;
}

/* Light Welcoming Hero Banner Section */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 50% 0%, #E0F2FE 0%, #F8FAFC 70%);
  padding: 4.5rem 0 5.5rem 0;
  color: var(--ep-text-title);
  border-bottom: 1px solid var(--ep-border-subtle);
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pastel-cyan-bg);
  border: 1px solid var(--pastel-cyan-border);
  color: var(--pastel-cyan-text);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--ep-text-title);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.035em;
}

.hero-title .highlight {
  color: var(--ep-primary-blue);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--ep-text-body);
  max-width: 600px;
  margin-bottom: 2.25rem;
  font-weight: 400;
  line-height: 1.7;
}

.download-badge-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.download-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--ep-border-light);
  padding: 10px 18px;
  border-radius: 14px;
  color: var(--ep-text-title);
  transition: var(--ep-transition);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.download-badge-btn:hover {
  background: #FFFFFF;
  border-color: var(--ep-primary-blue);
  transform: translateY(-3px);
  color: var(--ep-primary-blue);
  box-shadow: var(--ep-shadow-card);
}

.download-badge-text small {
  display: block;
  font-size: 0.7rem;
  color: var(--ep-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.download-badge-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ep-text-title);
}

/* Interactive Stacked Hero Card Deck (Lemonlime 3D Shuffle Style) */
.stacked-hero-wrapper {
  position: relative;
  min-height: 420px;
  margin-top: 1rem;
}

.stacked-card-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--ep-border-light);
  border-radius: var(--ep-radius-xl);
  padding: 1.5rem;
  box-shadow: var(--ep-shadow-stacked);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  user-select: none;
}

/* ── Card Deck: POSITION ONLY (transform / z-index / opacity) ── */
.stacked-card-item.card-deck-1 {
  z-index: 3;
  transform: translateY(0) scale(1) rotate(0deg);
  opacity: 1;
}

.stacked-card-item.card-deck-2 {
  z-index: 2;
  transform: translateY(-14px) scale(0.96) rotate(-2.5deg);
  opacity: 0.96;
}

.stacked-card-item.card-deck-3 {
  z-index: 1;
  transform: translateY(-28px) scale(0.92) rotate(3deg);
  opacity: 0.92;
}

.stacked-card-item.card-deck-1:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(2, 132, 199, 0.18);
}

/* ── Card Identity Colours (keyed to data-card, NOT position) ──
   These stay with the card no matter which deck slot it shuffles into. ── */

/* Card 1 — ExamsPrep Engine: Sky Blue */
.stacked-card-item[data-card="1"] {
  background: linear-gradient(145deg, #F0F9FF 0%, #E0F2FE 100%);
  border-color: #BAE6FD;
}
.stacked-card-item[data-card="1"].card-deck-1 {
  box-shadow: 0 20px 50px -12px rgba(2, 132, 199, 0.22), 0 0 0 1px #BAE6FD;
}
.stacked-card-item[data-card="1"].card-deck-1:hover {
  box-shadow: 0 28px 60px -10px rgba(2, 132, 199, 0.32), 0 0 0 2px #7DD3FC;
  transform: translateY(-8px) scale(1.02);
}
.stacked-card-item[data-card="1"] .stacked-card-header-bar {
  border-bottom-color: #BAE6FD;
}
.stacked-card-item[data-card="1"] .bg-light {
  background-color: rgba(255,255,255,0.75) !important;
  border-color: #BAE6FD !important;
  backdrop-filter: blur(4px);
}
.stacked-card-item[data-card="1"] .stat-chip-card {
  background: rgba(224, 242, 254, 0.8);
  border-color: #BAE6FD;
}
.stacked-card-item[data-card="1"] .stat-chip-card:hover {
  background: #FFFFFF;
  border-color: var(--ep-primary-blue);
}

/* Card 2 — AI Personal Tutor: Emerald Green */
.stacked-card-item[data-card="2"] {
  background: linear-gradient(145deg, #ECFDF5 0%, #D1FAE5 100%);
  border-color: var(--pastel-emerald-border);
}
.stacked-card-item[data-card="2"].card-deck-1 {
  box-shadow: 0 20px 50px -12px rgba(4, 120, 87, 0.20), 0 0 0 1px var(--pastel-emerald-border);
}
.stacked-card-item[data-card="2"].card-deck-1:hover {
  box-shadow: 0 28px 60px -10px rgba(4, 120, 87, 0.30), 0 0 0 2px #6EE7B7;
  transform: translateY(-8px) scale(1.02);
}
.stacked-card-item[data-card="2"] .stacked-card-header-bar {
  border-bottom-color: var(--pastel-emerald-border);
}
.stacked-card-item[data-card="2"] .bg-light {
  background-color: rgba(209, 250, 229, 0.6) !important;
  border-color: var(--pastel-emerald-border) !important;
  backdrop-filter: blur(4px);
}

/* Card 3 — Classroom Suite: Navy (brand navy, the other half of the logo) */
.stacked-card-item[data-card="3"] {
  background: linear-gradient(145deg, #EEF2F9 0%, #DBEAFE 100%);
  border-color: var(--pastel-navy-border);
}
.stacked-card-item[data-card="3"].card-deck-1 {
  box-shadow: 0 20px 50px -12px rgba(30, 40, 86, 0.20), 0 0 0 1px var(--pastel-navy-border);
}
.stacked-card-item[data-card="3"].card-deck-1:hover {
  box-shadow: 0 28px 60px -10px rgba(30, 40, 86, 0.30), 0 0 0 2px #93C5FD;
  transform: translateY(-8px) scale(1.02);
}
.stacked-card-item[data-card="3"] .stacked-card-header-bar {
  border-bottom-color: var(--pastel-navy-border);
}
.stacked-card-item[data-card="3"] .bg-light {
  background-color: rgba(219, 234, 254, 0.6) !important;
  border-color: var(--pastel-navy-border) !important;
  backdrop-filter: blur(4px);
}

/* Interactive Deck Control Dots */
.deck-controls {
  position: absolute;
  bottom: -32px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.deck-dot-btn {
  width: 28px;
  height: 8px;
  border-radius: 4px;
  border: none;
  background: #CBD5E1;
  cursor: pointer;
  transition: var(--ep-transition);
}

.deck-dot-btn:hover {
  background: #94A3B8;
}

.deck-dot-btn.active {
  width: 44px;
  background: var(--ep-primary-blue);
}

/* Deck dot active colour matches the card it represents */
.deck-dot-btn[data-target="1"].active { background: #0284C7; }   /* brand blue */
.deck-dot-btn[data-target="2"].active { background: #047857; }   /* emerald */
.deck-dot-btn[data-target="3"].active { background: #1E2856; }   /* brand navy */

.stacked-card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--ep-border-subtle);
}

.app-dots {

  display: flex;
  align-items: center;
  gap: 6px;
}

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

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.hero-card-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--ep-border-light);
  object-fit: cover;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}

.stat-chip-card {
  background: var(--ep-canvas-bg);
  border: 1px solid var(--ep-border-light);
  padding: 0.75rem 0.65rem;
  border-radius: var(--ep-radius-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--ep-transition);
  overflow: hidden;
  min-width: 0;
}

.stat-chip-card:hover {
  background: #FFFFFF;
  border-color: var(--ep-primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.stat-chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.stat-chip-num {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ep-text-title);
  line-height: 1.1;
}

.stat-chip-label {
  display: block;
  font-size: 0.7rem;
  color: var(--ep-text-muted);
  font-weight: 600;
  white-space: normal;
}

.hero-mini-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ep-text-title);
  background: var(--ep-canvas-bg);
  border: 1px solid var(--ep-border-light);
  padding: 4px 10px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stat-number-light {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ep-primary-blue);
  display: block;
}

.stat-label-light {
  font-size: 0.85rem;
  color: var(--ep-text-muted);
  font-weight: 600;
}

/* Trust Ribbon Bar (Soft Light Theme) */
.trust-ribbon {
  background: #FFFFFF;
  border-top: 1px solid var(--ep-border-light);
  border-bottom: 1px solid var(--ep-border-light);
  padding: 1.15rem 0;
  color: var(--ep-text-title);
}

.trust-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ep-text-title);
  background: var(--ep-canvas-bg);
  border: 1px solid var(--ep-border-light);
  padding: 8px 16px;
  border-radius: 50px;
}

.trust-item i {
  color: var(--ep-primary-blue);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Section Header Styling */
.section-tag {
  color: var(--ep-primary-blue);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ep-text-title);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--ep-text-muted);
  font-size: 1.08rem;
  max-width: 640px;
  margin: 0 auto;
}

/* Featured Exam Products Section (Light Theme) */
.product-card {
  background: #FFFFFF;
  border-radius: var(--ep-radius-xl);
  border: 1px solid var(--ep-border-light);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--ep-transition);
  position: relative;
  box-shadow: var(--ep-shadow-soft);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ep-shadow-card);
  border-color: var(--ep-blue-border);
}

.product-card:has(.show),
.spotlight-card:has(.show),
.product-card:focus-within,
.spotlight-card:focus-within,
.col-md-6:has(.show),
.col-lg-4:has(.show),
.col-lg-6:has(.show) {
  z-index: 100 !important;
  position: relative !important;
}

.product-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--pastel-cyan-bg);
  color: #1E2856 !important;
  border: 1px solid var(--pastel-cyan-border);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--pastel-cyan-bg);
  color: #1E2856 !important;
  border: 1px solid var(--pastel-cyan-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.product-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ep-text-title);
  margin-bottom: 0.75rem;
}

.product-description {
  color: var(--ep-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.product-specs-list {
  list-style: none;
  margin-bottom: 1.5rem;
  padding: 0;
}

.product-specs-list li {
  font-size: 0.9rem;
  color: var(--ep-text-body);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Modern Spotlight Cards (Lemonlime / Incident.io Style) */
.spotlight-card {
  background: #FFFFFF;
  border: 1px solid var(--ep-border-light);
  border-radius: var(--ep-radius-xl);
  padding: 2.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--ep-shadow-soft);
  transition: var(--ep-transition);
}

.spotlight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ep-shadow-stacked);
  border-color: var(--ep-blue-border);
}

.spotlight-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ep-border-subtle);
}

.spotlight-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--pastel-cyan-bg);
  border: 1px solid var(--pastel-cyan-border);
  color: #1E2856 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.spotlight-icon-wrapper.icon-purple {
  background: var(--pastel-purple-bg);
  border-color: var(--pastel-purple-border);
  color: var(--pastel-purple-text);
}

.spotlight-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.spotlight-tag.tag-primary {
  background: var(--pastel-cyan-bg);
  color: #1E2856 !important;
  border: 1px solid var(--pastel-cyan-border);
}

.spotlight-tag.tag-purple {
  background: var(--pastel-purple-bg);
  color: var(--pastel-purple-text);
  border: 1px solid var(--pastel-purple-border);
}

.spotlight-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ep-text-title);
  margin-bottom: 0.25rem;
}

.spotlight-desc {
  font-size: 0.92rem;
  color: var(--ep-text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.spotlight-section-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ep-text-title);
  margin-bottom: 1.25rem;
}

.spotlight-card-footer {
  background: var(--ep-canvas-bg);
  border: 1px solid var(--ep-border-light);
  padding: 1.25rem;
  border-radius: var(--ep-radius-lg);
  margin-top: 1.5rem;
}

.spotlight-specs-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--ep-border-subtle);
}

.spec-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spec-chip i {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.spec-chip small {
  display: block;
  font-size: 0.7rem;
  color: var(--ep-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-chip strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ep-text-title);
}

/* Rich Feature Lists & Custom Icon Boxes */
.rich-feature-list {
  list-style: none !important;
  padding: 0 !important;
  margin-bottom: 1.5rem !important;
}

.rich-feature-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  color: var(--ep-text-body) !important;
}

.rich-feature-item strong {
  color: var(--ep-text-title) !important;
}

.feature-icon-box {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.15rem !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  transition: var(--ep-transition) !important;
}

.feature-icon-box i {
  display: inline-block !important;
  font-style: normal !important;
  line-height: 1 !important;
  font-size: 1.15rem !important;
}

.rich-feature-item:hover .feature-icon-box {
  transform: scale(1.08) !important;
}

/* Icon Box Pastel Color Themes */
.icon-box-cyan    { background: var(--pastel-cyan-bg) !important;    color: var(--pastel-cyan-text) !important;    border: 1px solid var(--pastel-cyan-border) !important; }
.icon-box-purple  { background: var(--pastel-purple-bg) !important;  color: var(--pastel-purple-text) !important;  border: 1px solid var(--pastel-purple-border) !important; } /* teal */
.icon-box-amber   { background: var(--pastel-amber-bg) !important;   color: var(--pastel-amber-text) !important;   border: 1px solid var(--pastel-amber-border) !important; }
.icon-box-emerald { background: var(--pastel-emerald-bg) !important; color: var(--pastel-emerald-text) !important; border: 1px solid var(--pastel-emerald-border) !important; }
.icon-box-rose    { background: var(--pastel-rose-bg) !important;    color: var(--pastel-rose-text) !important;    border: 1px solid var(--pastel-rose-border) !important; }
.icon-box-blue    { background: #E0F2FE !important; color: #0284C7 !important; border: 1px solid #BAE6FD !important; }
.icon-box-indigo  { background: #DBEAFE !important; color: #0369A1 !important; border: 1px solid #93C5FD !important; } /* deep sky, not indigo */

/* Stacked Feature Cards Deck (Lemonlime / Incident.io Style) */
.stacked-cards-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.stacked-card {
  border-radius: var(--ep-radius-xl);
  padding: 2.25rem;
  height: 100%;
  transition: var(--ep-transition);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--ep-shadow-soft);
}

.stacked-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ep-shadow-stacked);
}

/* Card Theme Variations — Harmonious Cool-Toned Palette
   All tints drawn from the same blue/indigo/teal/slate family
   so cards complement each other instead of clashing.
   ─────────────────────────────────────────────────────── */

/* AI Tutor — navy tint (brand navy, the dark half of the logo) */
.card-soft-amber {
  background: linear-gradient(145deg, #EEF2F9 0%, #DBEAFE 100%);
  border: 1px solid var(--pastel-navy-border);
}

/* Science Note / Math — sky blue (brand blue) */
.card-soft-cyan {
  background: linear-gradient(145deg, #F0F9FF 0%, #E0F2FE 100%);
  border: 1px solid #BAE6FD;
}

/* Classroom — teal (brand-complementary, no purple) */
.card-soft-purple {
  background: linear-gradient(145deg, #F0FDFA 0%, #CCFBF1 100%);
  border: 1px solid #99F6E4;
}

/* Analytics — soft teal/emerald (kept, already cool) */
.card-soft-emerald {
  background: linear-gradient(145deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 1px solid #BBF7D0;
}

/* Games — soft ocean blue (replaced rose/pink) */
.card-soft-rose {
  background: linear-gradient(145deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid #BFDBFE;
}

/* Offline — clean slate/white */
.card-soft-slate {
  background: linear-gradient(145deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1px solid #E2E8F0;
}

.feature-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.feature-top-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  /* All badges are soft pills — no vivid solid fills */
  box-shadow: none;
}

/* AI Tutor badge — navy pill (brand navy) */
.feature-top-badge.bg-warning {
  background: #DBEAFE !important;
  color: #1E3A8A !important;
  border: 1px solid #93C5FD !important;
}

/* Math badge — sky blue pill (brand blue) */
.feature-top-badge.bg-primary {
  background: #E0F2FE !important;
  color: #0284C7 !important;
  border: 1px solid #BAE6FD !important;
}

/* Classroom badge — teal pill (logo-complementary, no purple) */
.feature-top-badge.badge-bg-purple {
  background: #CCFBF1 !important;
  color: #0F766E !important;
  border: 1px solid #99F6E4 !important;
}

/* Analytics badge — emerald pill */
.feature-top-badge.bg-success {
  background: #DCFCE7 !important;
  color: #047857 !important;
  border: 1px solid #BBF7D0 !important;
}

/* Games badge — ocean blue pill */
.feature-top-badge.bg-danger {
  background: #DBEAFE !important;
  color: #1D4ED8 !important;
  border: 1px solid #BFDBFE !important;
}

/* Offline badge — slate pill */
.feature-top-badge.bg-info {
  background: #F1F5F9 !important;
  color: #334155 !important;
  border: 1px solid #CBD5E1 !important;
}

.stacked-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ep-text-title);
  margin-bottom: 0.75rem;
}

.stacked-card p {
  font-size: 0.95rem;
  color: var(--ep-text-body);
  line-height: 1.65;
}

/* Deep Navy Installation Section (Derived from logo.jpeg) */
.installation-section-dark {
  background: linear-gradient(135deg, #0F172A 0%, #1E2856 100%);
  color: #FFFFFF;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.installation-section-dark::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.install-tabs-nav-dark {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px;
  border-radius: 50px;
  margin-bottom: 2.25rem;
  backdrop-filter: blur(10px);
}

.install-tab-btn-dark {
  border: none;
  background: transparent;
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #CBD5E1;
  cursor: pointer;
  transition: var(--ep-transition);
}

.install-tab-btn-dark i,
.install-tab-btn i {
  pointer-events: none;
}

.install-tab-btn-dark.active {
  background: var(--ep-primary-blue) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
}

.step-card-dark {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--ep-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem 1.6rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: var(--ep-transition);
  backdrop-filter: blur(12px);
}

.step-card-dark:hover {
  border-color: rgba(2, 132, 199, 0.6);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.step-number-dark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(2, 132, 199, 0.5);
  color: #38BDF8;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content-dark h5 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #FFFFFF;
}

.step-content-dark p {
  font-size: 0.92rem;
  color: #94A3B8;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Step-by-Step Installation Tabs (Light Style) */
.install-tabs-nav {
  display: inline-flex;
  background: var(--ep-border-subtle);
  border: 1px solid var(--ep-border-light);
  padding: 6px;
  border-radius: 50px;
  margin-bottom: 2rem;
}

.install-tab-btn {
  border: none;
  background: transparent;
  padding: 10px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ep-text-muted);
  cursor: pointer;
  transition: var(--ep-transition);
}

.install-tab-btn.active {
  background: #FFFFFF;
  color: var(--ep-primary-blue);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.step-card {
  background: #FFFFFF;
  border-radius: var(--ep-radius-lg);
  border: 1px solid var(--ep-border-light);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--ep-transition);
  box-shadow: var(--ep-shadow-soft);
}

.step-card:hover {
  border-color: var(--ep-primary-blue);
  box-shadow: var(--ep-shadow-card);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pastel-cyan-bg);
  border: 1px solid var(--pastel-cyan-border);
  color: var(--ep-primary-blue);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--ep-text-title);
}

.step-content p {
  font-size: 0.9rem;
  color: var(--ep-text-muted);
  margin-bottom: 0;
}

/* Pricing Section (Light Theme Highlight) */
.pricing-card-featured {
  background: #FFFFFF;
  border: 2px solid var(--ep-primary-blue);
  border-radius: var(--ep-radius-xl);
  padding: 3rem 2.5rem;
  position: relative;
  box-shadow: var(--ep-shadow-stacked);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ep-primary-blue);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 20px;
  border-radius: 50px;
}

.pricing-price {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--ep-text-title);
  margin: 1rem 0;
}

.pricing-price span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ep-text-muted);
}

/* Accordion FAQ Styling */
.accordion-custom .accordion-item {
  border: 1px solid var(--ep-border-light);
  border-radius: var(--ep-radius-lg) !important;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--ep-shadow-soft);
  background: #FFFFFF;
}

.accordion-custom .accordion-button {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ep-text-title);
  padding: 1.25rem 1.5rem;
  background: #FFFFFF;
  box-shadow: none !important;
}

.accordion-custom .accordion-button:not(.collapsed) {
  color: var(--ep-primary-blue);
  background: var(--pastel-cyan-bg);
}

.accordion-custom .accordion-body {
  padding: 1.25rem 1.5rem;
  color: var(--ep-text-body);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Footer Section */
.footer-section {
  background: #0F172A;
  color: #94A3B8;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-section h5 {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--ep-primary-blue);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #E2E8F0;
  font-size: 0.95rem;
}

.footer-contact-item i {
  color: var(--ep-primary-blue);
  font-size: 1.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  margin-top: 3rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive Media Queries */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .hero-section {
    padding: 3.5rem 0 4rem 0;
  }
  .stacked-hero-wrapper {
    margin-top: 2rem;
    /* Prevent absolute-positioned cards from bleeding outside the column */
    overflow: hidden;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .stacked-cards-deck {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .trust-ribbon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .trust-item {
    justify-content: flex-start;
  }
  /* Hero dropdowns: stay within parent on tablets */
  .hero-dropdown-menu {
    min-width: 260px;
    max-width: calc(100vw - 32px);
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.25;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .download-badge-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  /* Each dropdown wrapper takes full width */
  .download-badge-group .dropdown {
    width: 100%;
  }
  .download-badge-btn {
    width: 100% !important;
    justify-content: flex-start;
    padding: 14px 18px;
    font-size: 0.9rem;
    border-radius: 16px;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  /* Stat chips full width - no clipping */
  .stat-chip-card {
    padding: 0.65rem 0.75rem !important;
    min-width: 0;
    overflow: visible;
  }
  .stat-chip-num {
    font-size: 0.95rem !important;
  }
  .stat-chip-label {
    font-size: 0.68rem !important;
    white-space: normal;
  }
  .stat-number-light {
    font-size: 1.5rem;
  }
  .stat-label-light {
    font-size: 0.75rem;
  }
  .stacked-cards-deck {
    grid-template-columns: 1fr;
  }
  .trust-ribbon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .trust-item {
    padding: 8px 10px;
    font-size: 0.8rem;
    gap: 6px;
  }
  .install-tabs-nav {
    display: flex;
    width: 100%;
  }
  .install-tab-btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.82rem;
    text-align: center;
  }
}

/* ==========================================================================
   Smooth Micro-Animations & Dynamic Transitions
   ========================================================================== */

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropdownScaleIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(2, 132, 199, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
  }
}

@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Scroll Reveal Classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced Smooth Dropdown Menu Transitions */
.dropdown-menu {
  animation: dropdownScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: top center;
}

/* Premium Dynamic Interactive Micro-Animations */
.product-card,
.spotlight-card,
.pricing-card-featured,
.stacked-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease !important;
}

.product-card:hover,
.spotlight-card:hover,
.pricing-card-featured:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 45px -10px rgba(30, 40, 86, 0.14) !important;
}

.btn,
.download-badge-btn,
.hero-dl-dropdown-btn {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease !important;
}

.btn-primary:hover,
.btn-ep-header:hover {
  transform: translateY(-3px) scale(1.015) !important;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.35) !important;
}

.btn-primary:active,
.btn-ep-header:active {
  transform: translateY(-1px) scale(0.99) !important;
}

.product-icon,
.spotlight-icon-wrapper,
.feature-icon-box {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .product-icon,
.spotlight-card:hover .spotlight-icon-wrapper {
  transform: scale(1.12) rotate(-3deg);
}

/* Floating Deck Items */
.stacked-card-item.card-deck-1 {
  animation: subtleFloat 6s ease-in-out infinite;
}

/* ==========================================================================
   Comprehensive 320px - 480px Ultra-Mobile Responsive Audit & Overflow Prevention
   ========================================================================== */

html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
}

* {
  box-sizing: border-box;
}

@media (max-width: 575.98px) {
  /* Prevent horizontal scrolling & set mobile typography scale */
  body {
    font-size: 14px !important;
  }
  
  .container, .container-fluid {
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow-x: hidden;
  }

  .row {
    margin-left: -8px !important;
    margin-right: -8px !important;
  }

  .col, [class*="col-"] {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* Typography scale down for mobile */
  .hero-title {
    font-size: 1.65rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
  }

  .hero-subtitle {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
  }

  .section-title {
    font-size: 1.45rem !important;
  }

  .section-subtitle {
    font-size: 0.88rem !important;
  }

  .product-title, .spotlight-title {
    font-size: 1.15rem !important;
  }

  .product-description, .spotlight-desc {
    font-size: 0.82rem !important;
  }

  /* All Download & Action Buttons Responsiveness */
  .btn,
  .download-badge-btn,
  .hero-dl-dropdown-btn {
    font-size: 0.82rem !important;
    padding: 0.55rem 0.85rem !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
  }

  .product-card-downloads .btn,
  .spotlight-card-footer .btn {
    font-size: 0.82rem !important;
    padding: 0.55rem 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Spotlight Specs Row (Stack vertically on small screens so they never bleed out) */
  .spotlight-specs-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .spec-chip {
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
    width: 100% !important;
  }

  .spec-chip strong {
    font-size: 0.8rem !important;
    word-break: break-word !important;
  }

  /* Trust Ribbon & Hero Badges */
  .trust-ribbon-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .trust-item {
    padding: 6px 8px !important;
    font-size: 0.72rem !important;
    border-radius: 12px !important;
    text-align: center !important;
    flex-direction: column !important;
    gap: 4px !important;
  }

  .trust-item i {
    font-size: 1rem !important;
  }

  /* Installation Cards & Filename Code Elements */
  .step-card-dark {
    padding: 0.85rem 0.85rem !important;
  }

  .step-content-dark p,
  .step-content-dark h5,
  .step-content-dark strong,
  .step-content-dark code {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    font-size: 0.82rem !important;
  }

  /* Pricing Card Mobile Adjustments */
  .pricing-card-featured {
    padding: 1.5rem 1.25rem !important;
  }

  .pricing-price {
    font-size: 2.2rem !important;
  }

  .rich-feature-item {
    font-size: 0.82rem !important;
    gap: 10px !important;
  }

  /* Section internal padding — so content breathes and never sits flush */
  section.py-5,
  section[class*="py-"] {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* Product cards full-width on narrow screens */
  .product-card {
    padding: 1.25rem 1rem !important;
  }

  /* Spotlight cards breathing room */
  .spotlight-card {
    padding: 1.25rem 1rem !important;
  }

  /* Trust ribbon internal padding */
  .trust-ribbon {
    padding: 0.75rem 0 !important;
  }

  /* Navbar proper mobile padding */
  .navbar-custom .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Tab button text wrapping on tiny screens */
  .install-tab-btn {
    white-space: normal !important;
    line-height: 1.25 !important;
    padding: 10px 8px !important;
  }

  /* Footer spacing */
  .footer-section .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .footer-contact-item {
    font-size: 0.82rem !important;
  }

  /* Feature badges/tags — prevent overflow */
  .product-top-badge,
  .feature-top-badge,
  .spotlight-tag,
  .section-tag,
  .hero-pill-badge {
    white-space: normal !important;
    word-break: break-word !important;
    max-width: 100% !important;
    display: inline-flex !important;
    flex-wrap: wrap !important;
  }
}

/* Specific 320px - 375px Ultra-Small Viewports (iPhone SE, Galaxy Fold) */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.45rem !important;
  }

  .btn,
  .download-badge-btn {
    font-size: 0.78rem !important;
    padding: 0.45rem 0.6rem !important;
  }

  .trust-ribbon-grid {
    grid-template-columns: 1fr !important;
  }

  .product-card, .spotlight-card {
    padding: 1rem 0.9rem !important;
  }

  .navbar-brand .brand-text {
    font-size: 1.15rem !important;
  }

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

  /* Extra tighter container on 320px */
  .container, .container-fluid {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* ==========================================================================
   Custom Sleek Scrollbar — Brand Colors
   ========================================================================== */

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #0284C7 #EFF6FF;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #EFF6FF;
  border-radius: 100px;
}

::-webkit-scrollbar-thumb {
  background: #0284C7;
  border-radius: 100px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #1E2856;
}

/* Dropdown inner scrollbar (pricing dropdown max-height) */
.dropdown-menu::-webkit-scrollbar {
  width: 4px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: #F8FAFC;
  border-radius: 100px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: #BAE6FD;
  border-radius: 100px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #0284C7;
}

/* FAB Stack (Bottom Right) */
#fab-stack {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Shared FAB base style */
#scrollToTopBtn,
#whatsappFab {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease;
}

/* Scroll to Top */
#scrollToTopBtn {
  background: linear-gradient(135deg, #0284C7 0%, #1E2856 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
  /* Hidden: collapsed — takes no space, invisible */
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  margin-bottom: -10px; /* cancel the gap */
  overflow: hidden;
  pointer-events: none;
  transform: scale(0.85);
}

#scrollToTopBtn.visible {
  opacity: 1;
  visibility: visible;
  max-height: 46px;
  margin-bottom: 0;
  overflow: visible;
  pointer-events: auto;
  transform: scale(1);
}

#scrollToTopBtn:hover {
  background: linear-gradient(135deg, #1E2856 0%, #0284C7 100%);
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.6);
  transform: translateY(-2px) scale(1.07);
}

#scrollToTopBtn:active {
  transform: scale(0.93);
}

/* WhatsApp FAB */
#whatsappFab {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  animation: fabPulse 2.8s infinite;
}

#whatsappFab:hover {
  background: #1ebe5d;
  color: #fff;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.65);
  transform: translateY(-2px) scale(1.07);
  animation: none;
}

#whatsappFab:active {
  transform: scale(0.93);
}

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45); }
  50%       { box-shadow: 0 4px 26px rgba(37, 211, 102, 0.75); }
}

@media (max-width: 575.98px) {
  #fab-stack {
    bottom: 16px;
    right: 14px;
    gap: 8px;
  }
  #scrollToTopBtn,
  #whatsappFab {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   Inline-style replacements — styles.css is the single source of truth
   ========================================================================== */

/* Hero deck badge — navy pill (Classroom Suite Active) */
.badge-purple {
  background: #EEF2F9;
  color: #1E2856;
  border-color: #C5CEE0 !important;
}

/* Sky/blue stacked-card header badge (AI Active) */
.badge-sky {
  background: #F0F9FF;
  color: #0284C7;
  border-color: #BAE6FD !important;
}

/* Teal icon colour used in hero mini-tags (replaces purple) */
.icon-purple {
  color: #0F766E;
}

/* Classroom feature-top-badge — teal pill (no purple) */
.badge-bg-purple {
  background: #CCFBF1 !important;
  color: #0F766E !important;
  border: 1px solid #99F6E4 !important;
}

/* Sky colour override for dark-section section-tag (EASY SETUP) */
.section-tag-sky {
  color: #38BDF8 !important;
}

/* Install tab panes — hidden by default; JS sets display:block on active */
.install-tab-pane {
  display: none;
}

/* Scrollable pricing / download dropdown */
.dropdown-menu-scroll {
  max-height: 380px;
  overflow-y: auto;
}

/* Extra-small dropdown section header text */
.dropdown-header-xs {
  font-size: 0.72rem;
}

/* Brand accent colour ("Prep" in the footer logo wordmark) */
.brand-accent {
  color: #0284C7;
}

/* ==========================================================================
   Colour Harmony Additions
   ========================================================================== */

/* WhatsApp pricing CTA — brand navy instead of vivid green
   The floating WhatsApp FAB keeps green (universal recognition),
   but the pricing CTA should stay within the brand palette. */
.btn-wa-cta {
  background: linear-gradient(135deg, #1E2856 0%, #0284C7 100%);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-wa-cta:hover {
  background: linear-gradient(135deg, #0284C7 0%, #1E2856 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(2, 132, 199, 0.50);
  transform: translateY(-2px);
}
.btn-wa-cta:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.30);
}

/* Feature-card hover shadow — brand-navy tint instead of generic black */
.stacked-card:hover {
  box-shadow: 0 20px 45px -10px rgba(30, 40, 86, 0.14) !important;
}