/* ============================================
   DENTAL APPS - SHARED STYLESHEET
   Apps: 1dentist (patients) | osdent (dentists)
   Theme: Blue + Teal | Clean Medical
   ============================================ */

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

/* ---- CSS Variables ---- */
:root {
  /* 1dentist (patient) palette */
  --primary: #0EA5E9;
  --primary-dark: #0284C7;
  --primary-light: #BAE6FD;
  --secondary: #14B8A6;
  --secondary-dark: #0D9488;
  --secondary-light: #CCFBF1;
  --accent: #06B6D4;

  /* Neutrals */
  --dark: #0F172A;
  --dark-2: #1E293B;
  --mid: #334155;
  --muted: #64748B;
  --light: #94A3B8;
  --border: #E2E8F0;
  --bg-light: #F0F9FF;
  --bg-white: #FFFFFF;

  /* Typography */
  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --section-pad: 96px 0;
  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(14,165,233,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(14,165,233,0.10), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(14,165,233,0.14), 0 4px 16px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(14,165,233,0.16), 0 8px 24px rgba(0,0,0,0.10);
}

/* osdent override via body class */
body.osdent-theme {
  --primary: #1D4ED8;
  --primary-dark: #1E40AF;
  --primary-light: #BFDBFE;
  --secondary: #0891B2;
  --secondary-dark: #0E7490;
  --secondary-light: #CFFAFE;
  --accent: #3B82F6;
  --bg-light: #EFF6FF;
  --shadow-sm: 0 1px 3px rgba(29,78,216,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(29,78,216,0.10), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(29,78,216,0.14), 0 4px 16px rgba(0,0,0,0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* ============================================
   UTILITIES
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad); }
.section-sm { padding: 64px 0; }

.text-center { text-align: center; }
.text-muted { color: var(--muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.18;
  color: var(--dark);
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 100px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(14,165,233,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(14,165,233,0.45);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

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

.btn-lg {
  font-size: 17px;
  padding: 18px 36px;
}

.btn-sm {
  font-size: 13px;
  padding: 10px 20px;
}

/* ============================================
   STORE DOWNLOAD BUTTONS — Official badge style
   ============================================ */
.store-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- Full Badge Image (Google Play official badge PNG) ---- */
.store-badge-link {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.store-badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-badge-img {
  height: 57px;        /* exact match to App Store btn-store height */
  width: auto;
  display: block;
  border-radius: 10px;
}

@media (max-width: 480px) {
  .store-badge-img { height: 48px; }
}

/* Base badge — dark version (hero section) */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0f172a;
  color: #fff;
  padding: 11px 20px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  border: 1.5px solid rgba(255,255,255,0.10);
  position: relative;
  text-decoration: none;
  min-width: 152px;
}

.btn-store:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.24);
}

.btn-store:active { transform: translateY(0); }

/* White variant used in CTA section */
.btn-store.btn-store-light {
  background: #fff;
  color: #0f172a;
  border: 1.5px solid rgba(0,0,0,0.10);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.btn-store.btn-store-light:hover {
  background: #f8fafc;
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}

/* Store icon wrapper */
.store-icon-wrap {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-icon-wrap svg {
  width: 28px;
  height: 28px;
  display: block;
  overflow: visible;
}

/* Text stack */
.btn-store .store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1;
}

.btn-store .store-text .store-sub {
  font-size: 9px;
  font-weight: 400;
  opacity: 0.65;
  letter-spacing: 0.04em;
  text-transform: none;
  margin-bottom: 3px;
}

.btn-store .store-text .store-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Legacy alias (keeps old markup working) */
.btn-store .store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

/* Logo Image (replaces SVG icon) */
.logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  mix-blend-mode: multiply;   /* makes white PNG background transparent */
  border-radius: 0;
}

.footer-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);  /* makes logo white in dark footer */
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--dark);
}

.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg { width: 22px; height: 22px; fill: white; }

.logo span.highlight { color: var(--primary); }

/* Nav Links */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--mid);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover { color: var(--primary); background: var(--bg-light); }

.nav-cta {
  margin-left: 8px;
  font-size: 14px !important;
  padding: 9px 20px !important;
  border-radius: 100px !important;
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: #fff !important;
}

.nav-cta:hover { opacity: 0.9; background: linear-gradient(135deg, var(--primary), var(--secondary)) !important; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.98);
  gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--mid);
  padding: 10px 14px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.mobile-nav a:hover { color: var(--primary); background: var(--bg-light); }

.mobile-nav .nav-cta {
  margin: 8px 0 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: #fff !important;
  border-radius: 100px !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding-top: 130px;
  padding-bottom: 100px;
  background: linear-gradient(160deg, var(--bg-light) 0%, #fff 60%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(14,165,233,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(20,184,166,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  color: var(--primary-dark);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid var(--primary-light);
}

.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 22px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item { display: flex; flex-direction: column; }

.stat-num {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 260px;
  margin: 0 auto;
  animation: float 5s ease-in-out infinite;
}

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

.phone-frame {
  width: 260px;
  height: 520px;
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border-radius: 38px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.08), inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-light) 0%, #fff 100%);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 24px;
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.phone-screen-content {
  padding: 44px 16px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.phone-app-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
}

.phone-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.phone-card {
  background: white;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(14,165,233,0.1);
}

.phone-scan-area {
  height: 120px;
  background: linear-gradient(135deg, var(--bg-light), var(--secondary-light));
  border-radius: 10px;
  border: 2px dashed var(--primary-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.scan-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-icon svg { width: 16px; height: 16px; fill: white; }
.scan-label { font-family: var(--font-head); font-size: 10px; font-weight: 600; color: var(--primary); }

.phone-result {
  background: white;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.result-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.result-dot.green { background: #10b981; }
.result-dot.yellow { background: #f59e0b; }
.result-dot.red { background: #ef4444; }

.result-text { font-size: 9px; color: var(--mid); font-weight: 500; }
.result-label { font-size: 10px; font-weight: 700; color: var(--dark); font-family: var(--font-head); }

.phone-bottom-nav {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.nav-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
}

.nav-dot.active { background: var(--primary); width: 20px; border-radius: 3px; }

/* Floating Cards */
.float-card {
  position: absolute;
  background: white;
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  animation: float-card 5s ease-in-out infinite;
  z-index: 10;
}

.float-card-left {
  left: -50px;
  bottom: 100px;
  animation-delay: 0.5s;
}

.float-card-right {
  right: -40px;
  top: 100px;
  animation-delay: 1s;
}

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

.float-card .card-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.card-icon.green { background: #d1fae5; }
.card-icon.blue { background: var(--primary-light); }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works { background: var(--bg-white); }

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

.steps-grid::before {
  content: '';
  position: absolute;
  top: 52px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--secondary-light));
  z-index: 0;
}

.step-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.step-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(14,165,233,0.3);
  position: relative;
  z-index: 1;
}

.step-icon {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  background: var(--bg-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon svg { width: 28px; height: 28px; }

.step-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features { background: var(--bg-light); }

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

.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

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

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================
   SCREENSHOTS
   ============================================ */
.screenshots { background: white; }

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: start;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Real app screenshot — fills phone frame edge to edge, no padding */
.screenshot-phone:has(.real-screenshot) {
  padding: 0;
  background: transparent;
  box-shadow: 0 20px 50px rgba(0,0,0,0.30), 0 0 0 2px rgba(255,255,255,0.06);
}

/* Real app screenshot image inside phone frame */
.real-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 28px;
}

.screenshot-phone {
  width: 100%;
  max-width: 220px;      /* bigger — was 170px */
  height: 420px;         /* taller — was 290px */
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.30), 0 0 0 2px rgba(255,255,255,0.06);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.screenshot-phone:hover { transform: translateY(-10px) scale(1.02); }

.screenshot-screen {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

/* Screenshot 1 - Home */
.ss-home {
  background: linear-gradient(160deg, var(--bg-light) 0%, #fff 100%);
  display: flex;
  flex-direction: column;
  padding: 20px 12px 12px;
  gap: 8px;
}

/* Screenshot 2 - Scan */
.ss-scan {
  background: linear-gradient(160deg, var(--bg-light) 0%, #fff 100%);
  display: flex;
  flex-direction: column;
  padding: 20px 12px 12px;
  gap: 8px;
}

/* Screenshot 3 - Results */
.ss-results {
  background: linear-gradient(160deg, var(--bg-light) 0%, #fff 100%);
  display: flex;
  flex-direction: column;
  padding: 20px 12px 12px;
  gap: 8px;
}

/* Screenshot 4 - History */
.ss-history {
  background: linear-gradient(160deg, var(--bg-light) 0%, #fff 100%);
  display: flex;
  flex-direction: column;
  padding: 20px 12px 12px;
  gap: 8px;
}

.ss-topbar {
  height: 12px;
  background: linear-gradient(90deg, var(--primary-light), var(--secondary-light));
  border-radius: 6px;
}

.ss-card {
  background: white;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ss-block {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 4px;
}

.ss-block.w-80 { width: 80%; }
.ss-block.w-60 { width: 60%; }
.ss-block.w-90 { width: 90%; }

.ss-img-placeholder {
  height: 70px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ss-img-placeholder svg { width: 28px; height: 28px; opacity: 0.7; }

.ss-result-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}

.ss-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.ss-dot.g { background: #10b981; }
.ss-dot.y { background: #f59e0b; }
.ss-dot.r { background: #ef4444; }
.ss-result-bar { height: 6px; flex: 1; background: var(--border); border-radius: 3px; }
.ss-result-bar.fill-g { background: #10b981; width: 70%; }
.ss-result-bar.fill-y { background: #f59e0b; width: 40%; }

.screenshot-caption {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  text-align: center;
}

/* ============================================
   SCROLL OFFSET — Accounts for sticky header
   ============================================ */
section[id] {
  scroll-margin-top: 80px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about { background: var(--bg-light); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-card-main {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

.about-card-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.about-card-icon svg { width: 32px; height: 32px; fill: white; }

.about-card-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.about-card-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.disclaimer-box {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fbbf24;
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.disclaimer-box svg { width: 20px; height: 20px; fill: #d97706; flex-shrink: 0; margin-top: 2px; }

.disclaimer-text {
  font-size: 13px;
  color: #92400e;
  line-height: 1.6;
  font-weight: 500;
}

.about-float {
  position: absolute;
  right: -30px;
  bottom: -20px;
  background: white;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-float-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-float-icon svg { width: 20px; height: 20px; }
.about-float-text { font-family: var(--font-head); font-size: 12px; font-weight: 700; color: var(--dark); }
.about-float-sub { font-size: 11px; color: var(--muted); }

.about-title { margin-bottom: 20px; }

.about-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

.trust-list { display: flex; flex-direction: column; gap: 14px; }

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

.trust-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-check svg { width: 12px; height: 12px; fill: white; }
.trust-item p { font-size: 15px; color: var(--mid); line-height: 1.6; }
.trust-item strong { color: var(--dark); font-weight: 600; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  position: relative;
}

.cta-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  position: relative;
}

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

.btn-playstore-cta {
  background: white;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  transition: all 0.25s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.btn-playstore-cta:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,0.3); }
.btn-playstore-cta svg { width: 24px; height: 24px; }

/* ============================================
   FAQ SECTION
   ============================================ */
.faq { background: white; }

.faq-grid {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  background: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: background 0.2s;
}

.faq-question:hover { background: var(--bg-light); }

.faq-chevron {
  width: 22px; height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
}

.faq-chevron svg { width: 12px; height: 12px; stroke: var(--muted); fill: none; transition: stroke 0.3s; }

.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--primary); }
.faq-item.open .faq-chevron svg { stroke: white; }

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: white;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-icon svg { width: 20px; height: 20px; fill: white; }

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.80);
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.footer-col-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 13px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-legal a:hover { color: white; }

/* ============================================
   APP SWITCHER (shown on both pages)
   ============================================ */
.app-switcher {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.app-switcher-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
}

.app-switcher span { color: var(--muted); }

.switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--mid);
  background: white;
  transition: all 0.2s;
}

.switcher-btn:hover { border-color: var(--primary); color: var(--primary); }
.switcher-btn.active { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border-color: transparent; }

/* ============================================
   LEGAL PAGES (Privacy Policy & Data Safety)
   ============================================ */
.legal-hero {
  padding: 130px 0 64px;
  background: linear-gradient(160deg, var(--bg-light) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}

.legal-hero-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.legal-hero-sub {
  font-size: 16px;
  color: var(--muted);
}

.legal-body { padding: 64px 0 96px; }

.legal-content {
  max-width: 820px;
}

.legal-section {
  margin-bottom: 48px;
}

.legal-section-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.legal-section p, .legal-section li {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-section ul, .legal-section ol {
  padding-left: 24px;
}

.legal-section ul li { list-style: disc; }
.legal-section ol li { list-style: decimal; }

.legal-section strong { color: var(--dark); font-weight: 600; }

.legal-highlight {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}

.legal-highlight p { margin: 0; }

/* Data Safety specific */
.data-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 20px 0;
}

.data-table th {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 14px 20px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.data-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--bg-light); }

.safety-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.safety-card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.safety-card-icon.green { background: #d1fae5; }
.safety-card-icon.blue { background: var(--primary-light); }
.safety-card-icon.yellow { background: #fef3c7; }
.safety-card-icon.red { background: #fee2e2; }

.safety-card-icon svg { width: 24px; height: 24px; }

.safety-card-title { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.safety-card-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large tablets / small desktops */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .float-card-left { left: -20px; }
  .float-card-right { right: -20px; }
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .screenshot-phone { max-width: 260px; height: 460px; }
}

/* Tablets */
@media (max-width: 768px) {
  :root { --section-pad: 64px 0; }

  .nav { display: none; }
  .menu-toggle { display: flex; }

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

  .hero-content { max-width: 100%; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .hero-visual { order: -1; }
  .float-card-left, .float-card-right { display: none; }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .steps-grid::before { display: none; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-float { right: 0; }

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

  .section-header { margin-bottom: 40px; }
  .section-subtitle { max-width: 100%; }
}

/* Mobile */
@media (max-width: 480px) {
  :root { --section-pad: 48px 0; }

  .container { padding: 0 16px; }

  .hero { padding-top: 100px; padding-bottom: 64px; }
  .hero-title { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; max-width: 320px; }
  .hero-stats { gap: 20px; }

  .features-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .screenshot-phone { max-width: 100%; height: 360px; }

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

  .cta-actions { flex-direction: column; align-items: center; }

  .phone-mockup { width: 220px; }
  .phone-frame { width: 220px; height: 440px; }

  .legal-hero { padding: 110px 0 48px; }
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 10px 12px; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .app-switcher-inner { flex-wrap: wrap; justify-content: center; }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */
/* ============================================
   ANIMATIONS — Elements are VISIBLE by default.
   JS adds .js-ready to <body> to enable animations.
   This guarantees content shows even if JS fails.
   ============================================ */

/* Default: always visible, no animation */
.fade-in-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* Only hide & animate when JS has confirmed it's running */
.js-ready .fade-in-up {
  opacity: 0;
  transform: translateY(20px);
}

.js-ready .fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid children */
.js-ready .fade-in-up:nth-child(2) { transition-delay: 0.08s; }
.js-ready .fade-in-up:nth-child(3) { transition-delay: 0.16s; }
.js-ready .fade-in-up:nth-child(4) { transition-delay: 0.24s; }
.js-ready .fade-in-up:nth-child(5) { transition-delay: 0.32s; }
.js-ready .fade-in-up:nth-child(6) { transition-delay: 0.40s; }