/**
 * AchievEdge E-Learning - Core Design System & Global Styles
 * Company: EIBO SERVICES PVT LTD
 * Palette: AchievEdge Blue (#0284c7), Crisp White, Sky Blue, Dark Navy
 */

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

:root {
  /* Brand Colours derived from Logo */
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #0098da 50%, #0b5394 100%);
  --secondary: #ffffff;
  --accent-orange: #f59e0b;
  --accent-magenta: #d946ef;
  --accent-green: #10b981;
  --accent-coral: #ef4444;

  /* Neutrals */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  /* Elevations */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(2, 132, 199, 0.12), 0 8px 10px -6px rgba(2, 132, 199, 0.06);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.25);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Glassmorphism & Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  user-select: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.125rem;
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-purple { background: #f3e8ff; color: #6b21a8; }

/* Form Controls */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.925rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-control, .form-select {
  width: 100%;
  padding: 12px 18px;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text-dark);
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

/* Navigation Header */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.site-header .nav-wrap {
  max-width: 1320px;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 46px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-links li {
  flex-shrink: 0;
}

.nav-links a {
  display: inline-block;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.92rem;
  white-space: nowrap;
  padding: 6px 4px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

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

.nav-actions .header-login-btn,
.nav-actions .header-action-btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 9px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Mobile Nav Toggle Button */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.mobile-toggle:hover, .mobile-toggle:active {
  background: var(--bg-alt);
  border-color: var(--primary);
}

.hamburger-box {
  width: 22px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2.2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.25s ease-in-out;
}

.mobile-toggle.active .bar-1 {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active .bar-2 {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.active .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86%;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 9999;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -10px 0 35px rgba(15, 23, 42, 0.2);
}

.mobile-nav-drawer.active {
  transform: translateX(0) !important;
  visibility: visible !important;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
  flex-shrink: 0;
}

.drawer-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.drawer-close-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.drawer-close-btn:hover {
  background: #fee2e2;
  color: var(--accent-coral);
  border-color: #fca5a5;
}

.drawer-auth-box {
  padding: 16px 20px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-bottom: 1px solid #bae6fd;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.drawer-btn-primary {
  width: 100%;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.drawer-btn-secondary {
  width: 100%;
  padding: 11px 18px;
  font-size: 0.925rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px 24px;
}

.drawer-group-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.75px;
  color: var(--text-light);
  margin: 16px 0 8px;
  padding-left: 6px;
  text-transform: uppercase;
}

.drawer-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-menu-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
  min-height: 52px;
}

.drawer-menu-list a:hover,
.drawer-menu-list a:active {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateX(3px);
}

.drawer-item-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.drawer-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.drawer-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.drawer-menu-list a:hover .drawer-item-title {
  color: var(--primary);
}

.drawer-item-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.drawer-item-arrow {
  font-size: 1.3rem;
  color: var(--text-light);
  font-weight: 400;
}

.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
  flex-shrink: 0;
}

.drawer-footer-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
}

.drawer-legal-links {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.drawer-legal-links a {
  color: var(--text-muted);
}

.drawer-legal-links a:hover {
  color: var(--primary);
}

/* Mobile Sticky Bottom Quick-Bar */
.mobile-bottom-quickbar {
  display: none !important;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-color);
  padding: 8px 14px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 9990;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  align-items: center;
  gap: 10px;
}

.quickbar-btn {
  padding: 10px 16px;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quickbar-login {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
}

.quickbar-menu-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  min-height: 42px;
  color: var(--text-dark);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.quickbar-menu-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.quickbar-menu-btn span {
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}


/* Public Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  background: radial-gradient(circle at 10% 20%, rgba(224, 242, 254, 0.7) 0%, rgba(255, 255, 255, 1) 90%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.15;
  margin-bottom: 22px;
  color: #0a2540;
}

.hero-title span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-robot-wrap {
  width: 100%;
  max-width: 440px;
  animation: floatMascot 4s ease-in-out infinite alternate;
}

@keyframes floatMascot {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-16px) rotate(1.5deg); }
}

/* Floating educational items */
.float-tag {
  position: absolute;
  background: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
}

.float-tag-1 { top: 15%; left: -20px; animation: floatMascot 5s ease-in-out infinite alternate 1s; }
.float-tag-2 { bottom: 12%; right: -10px; animation: floatMascot 4.5s ease-in-out infinite alternate 0.5s; }

/* Section Utilities */
.section {
  padding: 90px 0;
}

.section-alt {
  background: #f1f5f9;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-color);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.price-value {
  font-size: 2.75rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-dark);
  margin: 18px 0;
}

.price-value span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  margin: 24px 0;
  flex-grow: 1;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.925rem;
  color: var(--text-dark);
}

.feature-list li.disabled {
  color: var(--text-light);
  text-decoration: line-through;
}

/* Footer */
.site-footer {
  background: #0a2540;
  color: #94a3b8;
  padding: 80px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin: 18px 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.925rem;
}

.footer-links a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

/* Modals & Popups */
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
  padding: 20px !important;
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.modal-overlay.active {
  display: flex !important;
  opacity: 1;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 460px;
  padding: 32px;
  position: relative;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-xl);
  border-left: 5px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: slideInToast 0.3s ease-out;
}

.toast.success { border-left-color: var(--accent-green); }
.toast.error { border-left-color: var(--accent-coral); }

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================
   Responsive Design & Mobile-First Polish
   ========================================================== */

/* Universal Layout & Overflow Guards */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

@media (max-width: 1180px) {
  .nav-wrap {
    gap: 16px;
  }
  .brand-logo img {
    height: 40px;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-links a {
    font-size: 0.85rem;
    padding: 6px 2px;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-actions .header-login-btn,
  .nav-actions .header-action-btn {
    padding: 8px 15px;
    font-size: 0.84rem;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 992px) {
  .nav-links {
    display: none !important;
  }
  .mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  /* Body bottom padding for mobile sticky quickbar */
  body {
    padding-bottom: 70px;
  }

  /* Header & Navigation */
  .site-header {
    background: rgba(255, 255, 255, 0.98);
  }

  .nav-wrap {
    height: 64px;
    padding: 0 16px;
  }

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

  .nav-links,
  .nav-actions .header-login-btn {
    display: none !important;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .header-action-btn {
    padding: 7px 14px;
    font-size: 0.825rem;
    font-weight: 700;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  /* Mobile Bottom Quick-Bar */
  .mobile-bottom-quickbar {
    display: none !important;
  }

  /* Hero Section */
  .hero-section {
    padding: 44px 0 54px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 6px 14px;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6vw, 2.35rem);
    line-height: 1.22;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
    max-width: 95%;
  }

  .hero-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 28px;
  }

  .hero-cta .btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 0.98rem;
  }

  .hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 0.82rem;
  }

  .hero-trust .trust-dot {
    display: none;
  }

  .hero-trust .trust-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  /* Hero Visual & Mascot */
  .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    margin-top: 8px;
  }

  .hero-robot-wrap {
    max-width: 220px;
    margin: 0 auto;
  }

  /* Stat Badges: Stack cleanly below robot without clipping or covering eyes */
  .float-tag {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 6px auto !important;
    width: 100%;
    max-width: 280px;
    justify-content: center;
    animation: none !important;
    box-shadow: var(--shadow-md);
  }

  /* Universal Grids - Collapse side-by-side grids to single column on mobile */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1.3fr"],
  [style*="grid-template-columns: 2fr 1.15fr"],
  [style*="grid-template-columns: 1.15fr 0.85fr"],
  [style*="grid-template-columns: 1fr 320px"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  [style*="minmax(340px"],
  [style*="minmax(320px"],
  [style*="minmax(300px"],
  [style*="minmax(280px"],
  [style*="minmax(260px"],
  [style*="minmax(250px"] {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
    gap: 18px !important;
  }

  /* Containers & Padding */
  .container {
    padding: 0 16px;
  }

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

  .section {
    padding: 48px 0;
  }

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

  .section-header h2 {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .section-header p {
    font-size: 0.98rem;
  }

  .card {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }

  /* Inline padding, margin & typography normalizers for public pages */
  div[style*="padding: 60px 24px"],
  div[style*="padding: 60px 20px"] {
    padding: 36px 16px !important;
  }

  div[style*="padding: 40px"],
  div[style*="padding: 36px"],
  div[style*="padding: 30px"],
  .card[style*="padding: 40px"],
  .card[style*="padding: 36px"] {
    padding: 20px 16px !important;
  }

  div[style*="margin-bottom: 70px"],
  div[style*="margin-bottom: 60px"],
  div[style*="margin-bottom: 50px"] {
    margin-bottom: 30px !important;
  }

  h1[style*="font-size: 2.7rem"],
  h1[style*="font-size: 2.6rem"],
  h1[style*="font-size: 2.5rem"] {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }

  h2[style*="font-size: 2rem"],
  h2[style*="font-size: 1.8rem"] {
    font-size: 1.45rem !important;
    line-height: 1.3 !important;
  }

  /* Pricing Cards */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .pricing-card {
    padding: 28px 20px;
  }

  .pricing-card.popular {
    transform: none;
  }

  /* Buttons & Form Inputs */
  .btn-lg {
    padding: 12px 22px;
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  .form-control, .form-select {
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
  }

  /* Responsive Tables */
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* FAQ Accordion Styling */
  details.card {
    padding: 16px 18px;
  }

  details.card summary {
    font-size: 0.98rem;
    line-height: 1.45;
    position: relative;
    padding-right: 28px;
    cursor: pointer;
    list-style: none;
  }

  details.card summary::-webkit-details-marker {
    display: none;
  }

  details.card summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
  }

  details.card[open] summary::after {
    content: '−';
  }

  /* Footer */
  .site-footer {
    padding: 48px 0 24px;
  }

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

  .footer-links h4 {
    margin-bottom: 12px;
  }

  .footer-links a {
    display: inline-block;
    padding: 5px 0;
    font-size: 0.95rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    font-size: 0.82rem;
  }
}

/* Extra Small Phones (320px - 420px) */
@media (max-width: 480px) {
  .brand-logo img {
    height: 34px;
  }

  .nav-actions .header-action-btn {
    padding: 6px 11px;
    font-size: 0.78rem;
  }

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

  .hero-title {
    font-size: 1.78rem;
  }

  .hero-subtitle {
    font-size: 0.925rem;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .price-value {
    font-size: 2.2rem;
  }

  .card {
    padding: 18px 14px;
  }

  .auth-page {
    padding: 16px 12px !important;
  }

  .auth-card {
    padding: 28px 18px !important;
  }

  [style*="minmax"] {
    grid-template-columns: 1fr !important;
  }
}

