/* ==========================================================================
   Gor3a | جرعة — Official App Landing Page Styles (landing.css)
   Design System: Gor3a Medical Teal (#00897B / #26A69A / #0B2E2B)
   Lightweight, GPU-Accelerated 60fps Animations, RTL/LTR & Light/Dark Ready
   ========================================================================== */

:root {
  /* Core Brand Palette (from Gor3a App Color.kt) */
  --teal-primary: #00897B;
  --teal-accent: #26A69A;
  --teal-dark: #00695C;
  --teal-deep: #0B2E2B;
  --teal-container: #E0F2F1;
  --teal-glow: rgba(38, 166, 154, 0.35);
  --cyan-scanner: #00E5FF;

  /* Light Mode Surfaces & Text */
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-glass: rgba(255, 255, 255, 0.86);
  --bg-card-tint: #E8F1F2;
  --bg-subtle: #F1F5F9;
  --border-color: #E2E8F0;
  --border-teal: rgba(0, 137, 123, 0.22);

  --text-main: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-on-teal: #FFFFFF;

  /* Semantic Status Colors */
  --safe-green: #10B981;
  --safe-green-bg: #ECFDF5;
  --warning-amber: #F59E0B;
  --warning-amber-bg: #FFFBEB;
  --alert-red: #EF4444;
  --alert-red-bg: #FEF2F2;

  /* Dosage Form Tag Colors (matching Color.kt) */
  --form-tablet-bg: #E0F7FA;
  --form-tablet-text: #00838F;
  --form-capsule-bg: #E0F2F1;
  --form-capsule-text: #00695C;
  --form-syrup-bg: #F3E5F5;
  --form-syrup-text: #7B1FA2;
  --form-drops-bg: #FFF3E0;
  --form-drops-text: #E65100;
  --form-topical-bg: #FCE4EC;
  --form-topical-text: #C2185B;
  --form-injection-bg: #EDE7F6;
  --form-injection-text: #512DA8;

  /* Elevation & Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(0, 137, 123, 0.06);
  --shadow-lg: 0 24px 48px -12px rgba(11, 46, 43, 0.16), 0 8px 20px -4px rgba(0, 137, 123, 0.1);
  --shadow-teal: 0 14px 34px -6px rgba(0, 137, 123, 0.42);
}

/* Dark Mode Theme Overrides (matching Gor3aBgDark / Gor3aSurfaceDark) */
[data-theme="dark"] {
  --bg-page: #0B1120;
  --bg-surface: #151F32;
  --bg-surface-glass: rgba(21, 31, 50, 0.85);
  --bg-card-tint: #132A2E;
  --bg-subtle: #1E293B;
  --border-color: #26354D;
  --border-teal: rgba(38, 166, 154, 0.35);

  --text-main: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.65);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body.landing-body {
  font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

body.landing-body[dir="ltr"] {
  font-family: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   1. Floating Glassmorphic Navigation Bar
   ========================================================================== */
.navbar-wrapper {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 1.25rem;
  pointer-events: none;
}

.landing-navbar {
  max-width: 1240px;
  margin: 0 auto;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-wrap: nowrap;
}

.landing-navbar.scrolled {
  padding: 0.45rem 1.05rem;
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 137, 123, 0.4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 137, 123, 0.3);
  border: 1.5px solid var(--teal-accent);
  flex-shrink: 0;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.nav-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.nav-brand-title .brand-divider {
  color: var(--teal-accent);
  font-weight: 400;
}

.nav-brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--teal-primary);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.78rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal-primary);
  background: rgba(0, 137, 123, 0.09);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.icon-pill-btn {
  height: 38px;
  padding: 0 0.8rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.icon-pill-btn:hover {
  border-color: var(--teal-primary);
  color: var(--teal-primary);
  transform: translateY(-1px);
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
}

.btn-nav-cta {
  background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-dark) 100%);
  color: #FFFFFF;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.52rem 1.1rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 14px rgba(0, 137, 123, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 137, 123, 0.5);
  background: linear-gradient(135deg, var(--teal-accent) 0%, var(--teal-primary) 100%);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   2. Hero Section — Clinical Precision & 3D Interactive Device Stage
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 8.5rem 0 5.5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(38, 166, 154, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 12% 75%, rgba(0, 137, 123, 0.14) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-card-tint) 0%, var(--bg-page) 100%);
}

[data-theme="dark"] .hero-section {
  background:
    radial-gradient(circle at 85% 15%, rgba(38, 166, 154, 0.22) 0%, transparent 48%),
    radial-gradient(circle at 15% 80%, rgba(0, 137, 123, 0.18) 0%, transparent 52%),
    linear-gradient(180deg, #071918 0%, var(--bg-page) 100%);
}

/* Subtle Medical Grid & Animated ECG Background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 137, 123, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 137, 123, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
}

.hero-ecg-bg {
  position: absolute;
  bottom: 6%;
  left: 0;
  width: 100%;
  height: 90px;
  opacity: 0.22;
  pointer-events: none;
}

.ecg-path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: ecgPulse 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes ecgPulse {
  0% { stroke-dashoffset: 1400; opacity: 0.2; }
  45% { stroke-dashoffset: 0; opacity: 1; }
  85% { stroke-dashoffset: -1400; opacity: 0.9; }
  100% { stroke-dashoffset: -1400; opacity: 0.2; }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 3.5rem;
  align-items: center;
}

/* Hero Text Column */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-teal);
  padding: 0.42rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--teal-primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.35rem;
  animation: fadeSlideUp 0.7s ease forwards;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--safe-green);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(2.25rem, 4.4vw, 3.65rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  animation: fadeSlideUp 0.8s 0.1s ease both;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-accent) 60%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 600px;
  animation: fadeSlideUp 0.8s 0.2s ease both;
}

/* Store Download Buttons Row */
.store-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
  animation: fadeSlideUp 0.8s 0.3s ease both;
}

.store-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.45rem;
  border-radius: 16px;
  background: #0F172A;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.35);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 210px;
}

[data-theme="dark"] .store-btn {
  background: #1E293B;
  border-color: rgba(38, 166, 154, 0.4);
}

.store-btn.store-btn-primary {
  background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-deep) 100%);
  border-color: rgba(94, 234, 212, 0.35);
  box-shadow: var(--shadow-teal);
}

.store-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.store-btn:hover::after {
  left: 140%;
}

.store-btn:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 18px 36px -8px rgba(0, 137, 123, 0.5);
  border-color: var(--teal-accent);
}

.store-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: start;
  line-height: 1.2;
}

.store-btn-small {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}

.store-btn-large {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-family: 'Inter', 'Cairo', sans-serif;
}

/* Dimmed & Coming Soon State for iOS Store Button */
.store-btn.store-btn-dimmed {
  opacity: 0.55;
  filter: grayscale(0.85);
  cursor: not-allowed;
  box-shadow: none !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  pointer-events: auto;
}

.store-btn.store-btn-dimmed:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.store-btn.store-btn-dimmed::after {
  display: none !important;
}

[data-theme="dark"] .store-btn.store-btn-dimmed {
  background: #1E293B !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.store-badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  margin-inline-start: auto;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.store-badge-soon-sm {
  font-size: 0.6rem;
  padding: 0.15rem 0.45rem;
}

.qr-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.15rem;
  border-radius: 16px;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.qr-quick-btn:hover {
  border-color: var(--teal-primary);
  color: var(--teal-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Hero Mini Highlights & Dosage Pills */
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  width: 100%;
  animation: fadeSlideUp 0.8s 0.4s ease both;
}

.hero-highlight-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.hero-highlight-item svg {
  color: var(--teal-primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   Hero 3D Phone Stage & Floating Clinical Cards
   ========================================================================== */
.hero-visual-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  perspective: 1200px;
  animation: fadeSlideUp 0.9s 0.25s ease both;
}

/* Ambient Glowing Orb behind phones */
.stage-glow-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 137, 123, 0.38) 0%, rgba(38, 166, 154, 0.12) 55%, transparent 75%);
  filter: blur(28px);
  animation: orbBreath 6s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes orbBreath {
  0% { transform: scale(0.92); opacity: 0.75; }
  100% { transform: scale(1.1); opacity: 1; }
}

.phones-composition {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

/* Realistic Titanium Phone Mockup */
.phone-mockup {
  position: relative;
  width: 276px;
  height: 564px;
  border-radius: 44px;
  background: #0F172A;
  padding: 10px;
  box-shadow:
    0 30px 60px -12px rgba(11, 46, 43, 0.45),
    0 0 0 2px #334155,
    inset 0 0 6px rgba(255, 255, 255, 0.25);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-mockup.primary-phone {
  z-index: 3;
  animation: floatPhonePrimary 5.5s ease-in-out infinite;
}

.phone-mockup.secondary-phone {
  position: absolute;
  width: 244px;
  height: 500px;
  right: -34px;
  top: 48px;
  z-index: 1;
  opacity: 0.92;
  transform: rotate(8deg) translateX(25px) translateZ(-40px);
  filter: saturate(0.95);
  animation: floatPhoneSecondary 6.5s ease-in-out infinite;
}

[dir="ltr"] .phone-mockup.secondary-phone {
  right: auto;
  left: -34px;
  transform: rotate(-8deg) translateX(-25px) translateZ(-40px);
}

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

@keyframes floatPhoneSecondary {
  0%, 100% { transform: rotate(8deg) translateX(25px) translateY(0px); }
  50% { transform: rotate(6deg) translateX(25px) translateY(-8px); }
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 20px;
  background: #090D16;
  border-radius: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px;
}

.phone-camera-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #2563EB 0%, #0F172A 70%);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 35px;
  overflow: hidden;
  background: var(--teal-deep);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Animated AI Laser Scanner Overlay on Hero Phone */
.scanner-laser-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.scanner-laser-line {
  position: absolute;
  left: 6%;
  right: 6%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #00E5FF 20%, #10B981 50%, #00E5FF 80%, transparent 100%);
  box-shadow: 0 0 16px 3px rgba(0, 229, 255, 0.65);
  border-radius: 999px;
  animation: laserSweep 3.8s ease-in-out infinite;
}

@keyframes laserSweep {
  0%, 100% { top: 14%; opacity: 0.25; }
  50% { top: 82%; opacity: 0.95; }
}

/* Floating Glass Badges around the Hero Phone */
.floating-badge {
  position: absolute;
  z-index: 6;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-teal);
  border-radius: 16px;
  padding: 0.65rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-lg);
  max-width: 235px;
}

.floating-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.floating-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.floating-badge-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
}

.floating-badge-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.badge-top-right {
  top: 36px;
  right: -24px;
  animation: floatBadge1 4.5s ease-in-out infinite;
}

.badge-bottom-left {
  bottom: 65px;
  left: -30px;
  animation: floatBadge2 5s ease-in-out infinite;
}

.badge-mid-left {
  top: 195px;
  left: -42px;
  animation: floatBadge1 5.5s 0.6s ease-in-out infinite;
}

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

@keyframes floatBadge2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(8px); }
}

/* Quick Screen Switcher Pills under Hero Phone */
.hero-phone-switcher {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  background: var(--bg-surface);
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-full);
  padding: 0.3rem;
  display: flex;
  gap: 0.25rem;
  box-shadow: var(--shadow-md);
}

.hero-screen-pill {
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hero-screen-pill.active,
.hero-screen-pill:hover {
  background: var(--teal-primary);
  color: #FFFFFF;
}

/* ==========================================================================
   3. Live Clinical Stats & Dosage Forms Ribbon
   ========================================================================== */
.stats-ribbon-section {
  position: relative;
  z-index: 4;
  margin-top: -1.5rem;
  padding-bottom: 3.5rem;
}

.stats-ribbon-card {
  background: linear-gradient(135deg, var(--teal-deep) 0%, #0F2926 50%, #0F172A 100%);
  border: 1px solid rgba(38, 166, 154, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  color: #FFFFFF;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-ribbon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.stat-ribbon-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

[dir="ltr"] .stat-ribbon-item:not(:last-child)::after {
  left: auto;
  right: 0;
}

.stat-ribbon-number {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 900;
  color: #5EEAD4;
  font-family: 'Inter', 'Cairo', sans-serif;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-ribbon-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #F8FAFC;
}

.stat-ribbon-sub {
  font-size: 0.78rem;
  color: #94A3B8;
  margin-top: 0.15rem;
}

/* ==========================================================================
   Section Headers Common Styles
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--teal-container);
  color: var(--teal-dark);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

[data-theme="dark"] .section-eyebrow {
  background: rgba(0, 137, 123, 0.2);
  color: #5EEAD4;
}

.section-title-main {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   4. Bento Grid Features Section (#features)
   ========================================================================== */
.features-section {
  padding: 5rem 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: var(--teal-accent);
  box-shadow: var(--shadow-lg);
}

.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-4 { grid-column: span 4; }
.bento-span-6 { grid-column: span 6; }

.bento-card.bento-teal-featured {
  background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-deep) 100%);
  color: #FFFFFF;
  border-color: transparent;
}

.bento-card.bento-teal-featured .bento-title,
.bento-card.bento-teal-featured .bento-desc {
  color: #FFFFFF;
}

.bento-card.bento-teal-featured .bento-desc {
  opacity: 0.9;
}

.bento-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--teal-container);
  color: var(--teal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

[data-theme="dark"] .bento-icon-box {
  background: rgba(0, 137, 123, 0.2);
  color: #5EEAD4;
}

.bento-card.bento-teal-featured .bento-icon-box {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.bento-card:hover .bento-icon-box {
  transform: scale(1.08) rotate(-4deg);
}

.bento-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.bento-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Micro UI Previews inside Bento Cards */
.bento-micro-ui {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

.bento-card.bento-teal-featured .bento-micro-ui {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Dosage Form Colored Pills Showcase (matching Color.kt) */
.dosage-pills-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.dosage-pill {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.2s ease;
}

.dosage-pill:hover {
  transform: translateY(-2px) scale(1.04);
}

.pill-tablet { background: var(--form-tablet-bg); color: var(--form-tablet-text); }
.pill-capsule { background: var(--form-capsule-bg); color: var(--form-capsule-text); }
.pill-syrup { background: var(--form-syrup-bg); color: var(--form-syrup-text); }
.pill-drops { background: var(--form-drops-bg); color: var(--form-drops-text); }
.pill-topical { background: var(--form-topical-bg); color: var(--form-topical-text); }
.pill-injection { background: var(--form-injection-bg); color: var(--form-injection-text); }

/* ==========================================================================
   5. Interactive Step-by-Step "How It Works" Section (#how-it-works)
   ========================================================================== */
.how-section {
  padding: 5.5rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.how-interactive-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-card:hover {
  border-color: var(--teal-accent);
  transform: translateX(-4px);
}

[dir="ltr"] .step-card:hover {
  transform: translateX(4px);
}

.step-card.active {
  border-color: var(--teal-primary);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
}

.step-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-number-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--teal-container);
  color: var(--teal-dark);
  font-weight: 900;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.step-card.active .step-number-badge {
  background: var(--teal-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 137, 123, 0.35);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 0.55rem;
  padding-inline-start: 3.6rem;
  line-height: 1.65;
}

.step-progress-bar {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-primary), var(--teal-accent));
  transition: width 0.1s linear;
}

[dir="ltr"] .step-progress-bar {
  right: auto;
  left: 0;
}

.step-card.active .step-progress-bar {
  animation: stepProgressFill 5s linear forwards;
}

@keyframes stepProgressFill {
  from { width: 0%; }
  to { width: 100%; }
}

/* Interactive Phone Preview Frame for Steps */
.how-phone-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.how-phone-frame {
  width: 290px;
  height: 590px;
  border-radius: 46px;
  background: #0F172A;
  padding: 11px;
  box-shadow: var(--shadow-lg), 0 0 0 2px #334155;
  position: relative;
}

.how-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  background: var(--teal-deep);
}

.how-screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.how-screen-img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.how-screen-caption {
  margin-top: 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-teal);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   6. Real Mobile App Screens Showcase Carousel (#screens)
   ========================================================================== */
.screens-section {
  padding: 5.5rem 0;
  overflow: hidden;
}

.screens-track-wrapper {
  position: relative;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 1.35rem;
  overflow-x: auto;
  padding: 1rem 0.5rem 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--teal-primary) var(--bg-subtle);
}

.screen-showcase-card {
  scroll-snap-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.screen-showcase-card:hover {
  transform: translateY(-10px);
  border-color: var(--teal-primary);
  box-shadow: var(--shadow-lg);
}

.screen-device-bezel {
  width: 100%;
  aspect-ratio: 9 / 19.2;
  border-radius: 26px;
  background: #0F172A;
  padding: 6px;
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.25);
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
}

.screen-device-bezel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
  transition: transform 0.4s ease;
}

.screen-showcase-card:hover .screen-device-bezel img {
  transform: scale(1.03);
}

.screen-step-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--teal-primary);
  background: var(--teal-container);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
}

[data-theme="dark"] .screen-step-tag {
  background: rgba(0, 137, 123, 0.22);
  color: #5EEAD4;
}

.screen-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.screen-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   7. Live EDA Drug Directory Search Section (#eda-directory)
   ========================================================================== */
.eda-preview-section {
  padding: 5rem 0;
}

.eda-preview-banner {
  background: linear-gradient(135deg, #0F172A 0%, var(--teal-deep) 60%, #004D40 100%);
  border: 1px solid rgba(38, 166, 154, 0.4);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.eda-preview-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.eda-search-form {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.55rem;
  border-radius: var(--radius-full);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.eda-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  color: #0F172A;
  outline: none;
}

.eda-search-submit {
  background: linear-gradient(135deg, var(--teal-primary), var(--teal-dark));
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.eda-search-submit:hover {
  background: linear-gradient(135deg, var(--teal-accent), var(--teal-primary));
  transform: scale(1.02);
}

.eda-quick-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.eda-quick-tag {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #E2E8F0;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.eda-quick-tag:hover {
  background: var(--teal-accent);
  color: #FFFFFF;
  border-color: var(--teal-accent);
  transform: translateY(-2px);
}

/* ==========================================================================
   8. FAQ Accordion Section (#faq)
   ========================================================================== */
.faq-section {
  padding: 5rem 0;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.open {
  border-color: var(--teal-primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: start;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.faq-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--teal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.35rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ==========================================================================
   9. Bottom Download App CTA Section (#download)
   ========================================================================== */
.download-cta-section {
  padding: 3rem 0 6rem;
}

.download-cta-card {
  background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-dark) 45%, var(--teal-deep) 100%);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-teal);
  position: relative;
  overflow: hidden;
}

.download-cta-title {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.download-cta-desc {
  font-size: 1.08rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 560px;
}

.download-qr-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
}

.qr-svg-frame {
  background: #FFFFFF;
  padding: 1rem;
  border-radius: 16px;
  width: 156px;
  height: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   10. Footer
   ========================================================================== */
.landing-footer {
  background: #0B131E;
  color: #94A3B8;
  padding: 4rem 0 2.5rem;
  border-top: 2px solid var(--teal-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-desc {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 360px;
  color: #94A3B8;
}

.footer-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.footer-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 137, 123, 0.14);
  border: 1px solid rgba(94, 234, 212, 0.22);
  color: #5EEAD4;
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-col-title {
  color: #FFFFFF;
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
  position: relative;
  display: inline-block;
}

.footer-col-title::after {
  content: "";
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--teal-accent);
  margin-top: 0.35rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: #94A3B8;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: #5EEAD4;
  transform: translateX(-3px);
}

[dir="ltr"] .footer-links a:hover {
  transform: translateX(3px);
}

.footer-store-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-store-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  transition: all 0.22s ease;
}

.footer-store-btn:hover {
  background: rgba(0, 137, 123, 0.2);
  border-color: #5EEAD4;
  transform: translateY(-2px);
}

.footer-store-btn-dimmed {
  opacity: 0.48;
  filter: grayscale(0.85);
  cursor: not-allowed !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  pointer-events: auto;
}

.footer-store-btn-dimmed:hover {
  transform: none !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.footer-store-btn-dimmed svg {
  color: #94A3B8 !important;
}

.footer-store-btn svg {
  width: 22px;
  height: 22px;
  color: #5EEAD4;
  flex-shrink: 0;
}

.footer-store-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-store-meta small {
  font-size: 0.68rem;
  color: #94A3B8;
}

.footer-store-meta strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.84rem;
}

/* ==========================================================================
   Modals (Lightbox & Store Download / QR Modal)
   ========================================================================== */
.landing-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 19, 30, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.landing-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.landing-modal-backdrop.open .landing-modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-circle {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

[dir="ltr"] .modal-close-circle {
  left: auto;
  right: 1rem;
}

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

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

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints (1024px, 768px, 480px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .how-interactive-grid,
  .download-cta-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .store-buttons-group,
  .hero-highlights {
    justify-content: center;
  }

  .bento-span-7,
  .bento-span-5,
  .bento-span-4,
  .bento-span-6 {
    grid-column: span 6;
  }

  .stats-ribbon-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-ribbon-item:nth-child(2)::after {
    display: none;
  }

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

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-teal);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
  }

  .mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .btn-nav-cta span {
    display: none;
  }

  .bento-span-7,
  .bento-span-5,
  .bento-span-4,
  .bento-span-6 {
    grid-column: span 12;
  }

  .phone-mockup.secondary-phone {
    display: none;
  }

  .floating-badge.badge-mid-left {
    display: none;
  }

  .floating-badge.badge-top-right {
    right: 0;
  }

  .floating-badge.badge-bottom-left {
    left: 0;
  }

  .eda-search-form {
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .eda-search-submit {
    justify-content: center;
  }

  .download-cta-card {
    padding: 2.5rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-layout {
    grid-template-columns: 1fr !important;
  }

  .legal-sidebar {
    position: static !important;
  }
}

/* ==========================================================================
   10. Legal Pages (Privacy Policy /privacy & Terms of Service /terms)
   ========================================================================== */
.legal-hero {
  padding: 8.5rem 0 3.5rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(38, 166, 154, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(0, 137, 123, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-card-tint) 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.legal-meta-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.legal-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-teal);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-primary);
  box-shadow: var(--shadow-sm);
}

.legal-main-section {
  padding: 3.5rem 0 5rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.legal-sidebar-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-toc-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.legal-toc-list a:hover {
  background: rgba(0, 137, 123, 0.08);
  color: var(--teal-primary);
}

.legal-content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.legal-block {
  scroll-margin-top: 6.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-block:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.legal-block-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.28rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.9rem;
}

.legal-block-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--teal-container);
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .legal-block-num {
  background: rgba(0, 137, 123, 0.22);
  color: #5EEAD4;
}

.legal-block p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.85rem;
}

.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.legal-list li {
  position: relative;
  padding-inline-start: 1.5rem;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.legal-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0.05rem;
  color: var(--teal-primary);
  font-weight: 900;
}

.permission-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.permission-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.permission-card-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.permission-card-code {
  font-size: 0.72rem;
  font-family: monospace;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(0, 137, 123, 0.12);
  color: var(--teal-primary);
  font-weight: 700;
}

.permission-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.medical-disclaimer-alert {
  background: var(--warning-bg);
  border: 1.5px solid rgba(230, 81, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  color: #9A3412;
}

[data-theme="dark"] .medical-disclaimer-alert {
  background: rgba(230, 81, 0, 0.12);
  color: #FDBA74;
}

.medical-disclaimer-alert h4 {
  font-size: 1.02rem;
  font-weight: 900;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.medical-disclaimer-alert p {
  color: inherit !important;
  margin-bottom: 0 !important;
  font-size: 0.92rem !important;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #5EEAD4;
  font-weight: 700;
  font-size: 0.86rem;
  transition: opacity 0.2s ease;
}

.footer-bottom-links a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Toast Notification for coming soon iOS */
.landing-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  border: 1px solid rgba(0, 137, 123, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 90vw;
  text-align: center;
}

.landing-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.landing-toast-icon {
  font-size: 1.15rem;
}
