/* ============================================================
   MedVibe — Landing Page Styles
   Design System: Accessible & Ethical · Figtree + Noto Sans
   Primary: #4ECDC4 | WCAG AA compliant
   ============================================================ */

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

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

:root {
  --primary:        #4ECDC4;
  --primary-dark:   #38b2a8;
  --primary-light:  #e0f5f3;
  --primary-xlight: #f0fdfb;
  --secondary:      #2C3E50;
  --accent:         #FF6B6B;
  --text:           #1a2e2d;
  --text-body:      #3d5a57;
  --text-muted:     #6b9590;
  --bg:             #ffffff;
  --bg-alt:         #f0fdfb;
  --border:         #c7ede9;
  --shadow-sm:      0 2px 8px rgba(78,205,196,0.10);
  --shadow-md:      0 4px 24px rgba(78,205,196,0.15);
  --shadow-lg:      0 8px 48px rgba(78,205,196,0.20);
  --radius-sm:      8px;
  --radius-md:      16px;
  --radius-lg:      24px;
  --radius-xl:      32px;
  --transition:     0.2s ease;
  --container:      1200px;
  --nav-height:     72px;
}

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

body {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.5vw, 40px); }
h3 { font-size: clamp(18px, 2vw, 24px); }

p { font-size: 16px; line-height: 1.7; color: var(--text-body); }

a { color: var(--primary-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-alt { background: var(--bg-alt); }

.section-label {
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

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

.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 17px; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Figtree', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(78,205,196,0.3);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
}
.nav-links a:hover { color: var(--primary-dark); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  gap: 2px;
  background: var(--primary-xlight);
  border-radius: 8px;
  padding: 3px;
}

.lang-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn.active {
  background: var(--primary);
  color: white;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  min-height: 52px;
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(78,205,196,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(78,205,196,0.45);
  color: white;
}

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

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

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.btn-dark {
  background: var(--secondary);
  color: white;
}

.btn-dark:hover { background: #1a2530; color: white; }

.btn-store {
  background: #1a1a1a;
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  gap: 10px;
  min-height: 52px;
}

.btn-store svg { width: 22px; height: 22px; flex-shrink: 0; }

.btn-store-inner { text-align: left; }
.btn-store-small { font-size: 11px; font-weight: 400; opacity: 0.8; display: block; }
.btn-store-name  { font-size: 15px; font-weight: 600; display: block; line-height: 1.2; }

.btn-store:hover { background: #2d2d2d; color: white; }

.btn-store-android { background: #01875f; }
.btn-store-android:hover { background: #016a4a; }

/* ── Hero ── */
.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding-top: var(--nav-height);
  background: linear-gradient(160deg, var(--primary-xlight) 0%, white 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(78,205,196,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { padding: 48px 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px 8px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.3); }
}

.hero h1 {
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

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

.hero-desc {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-item { text-align: left; }
.stat-number {
  font-family: 'Figtree', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
}
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Hero phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: linear-gradient(145deg, #1a2e2d, #2d4a47);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(78,205,196,0.2),
    0 32px 80px rgba(0,0,0,0.3),
    0 0 80px rgba(78,205,196,0.1);
  position: relative;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-16px) rotate(-2deg); }
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--primary-xlight), white);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 80px;
  height: 24px;
  background: #1a2e2d;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
}

.phone-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

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

.phone-name { font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 600; color: var(--text); }
.phone-sub  { font-size: 10px; color: var(--text-muted); }

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

.phone-card-title {
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pill-green  { background: #d1fae5; color: #065f46; }
.pill-orange { background: #fef3c7; color: #92400e; }
.pill-blue   { background: #dbeafe; color: #1e40af; }

.phone-med-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

.phone-med-row:last-child { border-bottom: none; }

.phone-med-icon {
  width: 28px;
  height: 28px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.phone-med-name { font-size: 11px; font-weight: 600; color: var(--text); }
.phone-med-dose { font-size: 10px; color: var(--text-muted); }

/* Floating badges */
.float-badge {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float-badge 3s ease-in-out infinite;
  white-space: nowrap;
}

.float-badge-1 {
  top: 80px;
  right: -40px;
  animation-delay: 0.5s;
}

.float-badge-2 {
  bottom: 120px;
  left: -40px;
  animation-delay: 1.5s;
}

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

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.badge-icon-green  { background: #d1fae5; }
.badge-icon-purple { background: #ede9fe; }

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

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  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(--primary-dark));
  opacity: 0;
  transition: opacity 0.3s;
}

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

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.feature-card h3 { margin-bottom: 10px; font-size: 18px; }
.feature-card p  { font-size: 15px; }

/* ── How it works ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

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

.step-card {
  text-align: center;
  padding: 32px 20px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Figtree', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(78,205,196,0.3);
}

.step-card h3 { font-size: 16px; margin-bottom: 8px; }
.step-card p  { font-size: 14px; }

/* ── Care section ── */
.care-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.care-image {
  position: relative;
}

.care-phones {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.care-phone {
  width: 180px;
  height: 360px;
  background: linear-gradient(145deg, #1a2e2d, #2d4a47);
  border-radius: 30px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}

.care-phone:nth-child(2) {
  margin-top: 40px;
}

.care-phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-alt);
  border-radius: 24px;
  overflow: hidden;
}

.care-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.care-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.care-item-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.care-item-icon svg { width: 22px; height: 22px; }

.care-item-text h4 { font-size: 16px; margin-bottom: 4px; }
.care-item-text p  { font-size: 14px; }

/* ── Download section ── */
.download-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #2C3E50 100%);
  color: white;
  text-align: center;
  padding: 96px 24px;
  position: relative;
  overflow: hidden;
}

.download-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(78,205,196,0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(78,205,196,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.download-section h2 { color: white; margin-bottom: 16px; }
.download-section p  { color: rgba(255,255,255,0.8); font-size: 18px; margin-bottom: 40px; }

.download-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-store-white {
  background: white;
  color: var(--text);
}

.btn-store-white:hover { background: var(--primary-xlight); color: var(--text); }

/* ── Footer ── */
footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .nav-logo-icon svg { fill: white; }
.footer-brand .nav-logo { color: white; }
.footer-brand p { font-size: 14px; max-width: 280px; }

.footer-col h4 {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a  { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: var(--primary); }

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

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid    { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .hero          { grid-template-columns: 1fr; text-align: center; }
  .hero-desc     { max-width: 100%; margin: 0 auto 40px; }
  .hero-cta      { justify-content: center; }
  .hero-stats    { justify-content: center; }
  .hero-visual   { display: none; }
  .care-grid     { grid-template-columns: 1fr; }
  .care-image    { display: none; }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav-links { display: none; }

  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    padding: 32px 24px;
    gap: 24px;
    z-index: 99;
    align-items: flex-start;
  }

  .nav-links.open a { font-size: 20px; }

  .features-grid { grid-template-columns: 1fr; }
  .steps-grid    { grid-template-columns: 1fr 1fr; }
  .footer-inner  { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-cta   { flex-direction: column; }
  .btn        { width: 100%; }
  .download-btns { flex-direction: column; align-items: center; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; }
}

/* ── Privacy / Terms pages ── */
.legal-page {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 96px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1 { margin-bottom: 8px; }
.legal-date { color: var(--text-muted); font-size: 14px; margin-bottom: 48px; }

.legal-page h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-page h2:first-of-type { border-top: none; margin-top: 0; }

.legal-page p  { margin-bottom: 16px; }
.legal-page ul { padding-left: 24px; margin-bottom: 16px; }
.legal-page li { margin-bottom: 8px; font-size: 16px; color: var(--text-body); line-height: 1.6; }

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Button sizes ── */
.btn-lg { padding: 16px 32px; font-size: 17px; min-height: 58px; }

.btn-secondary {
  background: white;
  color: var(--text);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Nav rework for index.html ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta { padding: 10px 20px; min-height: 40px; font-size: 14px; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  padding: 32px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 24px;
}
.nav-mobile.open { display: flex; }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.nav-mobile ul a { font-size: 20px; font-family: 'Figtree', sans-serif; font-weight: 600; color: var(--text); }
.nav-mobile .btn { margin-top: 8px; }

/* ── Hero rework ── */
.hero {
  min-height: 100dvh;
  padding-top: var(--nav-height);
  background: linear-gradient(160deg, var(--primary-xlight) 0%, white 60%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: rgba(78,205,196,0.12);
  top: -200px; right: -100px;
}
.hero-blob-2 {
  width: 400px; height: 400px;
  background: rgba(78,205,196,0.08);
  bottom: -100px; left: -100px;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(78,205,196,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,205,196,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
}

.hero-badge {
  display: inline-block;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-content h1 { margin-bottom: 20px; letter-spacing: -0.5px; }

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
}

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

.phone-mockup { position: relative; }

.phone-frame {
  width: 280px;
  height: 560px;
  background: linear-gradient(145deg, #1a2e2d, #2d4a47);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(78,205,196,0.2),
    0 32px 80px rgba(0,0,0,0.3),
    0 0 80px rgba(78,205,196,0.1);
  position: relative;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-16px) rotate(-2deg); }
}

.phone-notch {
  width: 80px; height: 24px;
  background: #1a2e2d;
  border-radius: 0 0 16px 16px;
  margin: 0 auto 4px;
}

.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, var(--primary-xlight), white);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-shadow {
  position: absolute;
  bottom: -20px; left: 20px; right: 20px;
  height: 40px;
  background: rgba(0,0,0,0.15);
  filter: blur(20px);
  border-radius: 50%;
}

.app-ui { padding: 0 12px 12px; flex: 1; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }

.app-header { padding: 8px 0; }
.app-greeting { display: flex; align-items: center; justify-content: space-between; }
.app-greeting-hi { font-size: 10px; color: var(--text-muted); }
.app-greeting-name { font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 700; color: var(--text); }
.app-avatar {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Figtree', sans-serif; font-size: 11px; font-weight: 700; color: white;
}

.app-med-card {
  background: white;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  border-left: 3px solid var(--primary);
}
.app-med-card--pending { border-left-color: #e0f5f3; opacity: 0.7; }

.app-med-time { font-family: 'Figtree', sans-serif; font-size: 11px; font-weight: 700; color: var(--primary-dark); min-width: 32px; }
.app-med-name { font-size: 10px; font-weight: 600; color: var(--text); flex: 1; line-height: 1.3; }
.app-med-dose { font-size: 9px; color: var(--text-muted); }
.app-med-check { color: var(--primary); font-size: 14px; }
.app-med-dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--border); }

.app-section-title { font-family: 'Figtree', sans-serif; font-size: 11px; font-weight: 700; color: var(--text); padding-top: 4px; }

.app-pills { display: flex; flex-direction: column; gap: 6px; }
.app-pill-item {
  display: flex; align-items: center; gap: 8px;
  background: white; border-radius: 8px; padding: 8px 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.app-pill-icon { font-size: 16px; }
.app-pill-info { flex: 1; }
.app-pill-name { font-size: 10px; font-weight: 600; color: var(--text); }
.app-pill-stock { font-size: 9px; color: var(--text-muted); }
.app-pill-warn { font-size: 12px; }

/* Floating cards */
.floating-card {
  position: absolute;
  background: white;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.floating-card-1 {
  top: 60px; right: -20px;
  animation: floatBadge 3s ease-in-out infinite;
}
.floating-card-2 {
  bottom: 100px; left: -20px;
  animation: floatBadge 3s ease-in-out infinite 1.5s;
}

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

.floating-icon { font-size: 20px; }
.floating-title { font-family: 'Figtree', sans-serif; font-size: 12px; font-weight: 700; color: var(--text); }
.floating-sub   { font-size: 11px; color: var(--text-muted); }

/* ── How it works (new layout) ── */
.steps { display: flex; flex-direction: column; gap: 48px; }

.step {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  align-items: center;
  gap: 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.step-reverse { direction: rtl; }
.step-reverse > * { direction: ltr; }

.step-number {
  font-family: 'Figtree', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  flex-shrink: 0;
}

.step-content h3 { margin-bottom: 10px; }
.step-content p  { font-size: 15px; }

.step-visual {
  width: 80px; height: 80px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-icon { font-size: 36px; }

/* ── Care section (new layout) ── */
.care-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.care-content { max-width: 500px; }
.care-content h2 { margin-bottom: 16px; }
.care-content > p { margin-bottom: 24px; }

.care-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.care-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text-body); }

.care-check {
  width: 24px; height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}

.care-visual { position: relative; display: flex; flex-direction: column; gap: 16px; }

.care-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.care-card-main {}
.care-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.care-avatar {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Figtree', sans-serif; font-size: 18px; font-weight: 700; color: white;
}
.care-name { font-family: 'Figtree', sans-serif; font-size: 16px; font-weight: 700; color: var(--text); }
.care-status { font-size: 13px; color: #065f46; background: #d1fae5; padding: 2px 8px; border-radius: 100px; display: inline-block; margin-top: 2px; }
.care-status--ok {}

.care-stats { display: flex; gap: 24px; margin-bottom: 16px; }
.care-stat { text-align: center; }
.care-stat-value { font-family: 'Figtree', sans-serif; font-size: 24px; font-weight: 700; color: var(--primary-dark); }
.care-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.care-progress { height: 6px; background: var(--primary-light); border-radius: 100px; overflow: hidden; }
.care-progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-dark)); border-radius: 100px; transition: width 1s ease; }

.care-card-notif {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
}
.care-notif-icon { font-size: 22px; }
.care-notif-title { font-family: 'Figtree', sans-serif; font-size: 14px; font-weight: 600; color: var(--text); }
.care-notif-time { font-size: 12px; color: var(--text-muted); }

/* ── Download section (new layout) ── */
.section-download {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2e2d 100%);
  position: relative;
  overflow: hidden;
}
.section-download .section { padding: 96px 0; }

.download-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(78,205,196,0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(78,205,196,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.download-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.download-icon {
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.download-icon svg { width: 40px; height: 40px; }

.download-inner h2 { color: white; margin-bottom: 16px; }
.download-inner p  { color: rgba(255,255,255,0.8); font-size: 18px; margin-bottom: 40px; }

.download-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition);
  min-width: 200px;
}
.store-btn-ios { background: #1a1a1a; color: white; }
.store-btn-ios:hover { background: #333; color: white; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.store-btn-android { background: #01875f; color: white; }
.store-btn-android:hover { background: #016a4a; color: white; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

.store-btn-text { text-align: left; }
.store-btn-sub { font-size: 11px; opacity: 0.8; display: block; }
.store-btn-name { font-family: 'Figtree', sans-serif; font-size: 17px; font-weight: 700; display: block; }

.download-note { font-size: 13px; color: rgba(255,255,255,0.5); }

/* ── Footer (new layout) ── */
.footer { background: #0f1f1e; color: rgba(255,255,255,0.6); padding: 64px 0 32px; }

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { color: white; margin-bottom: 12px; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.5); max-width: 260px; }

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

.footer-col h4 {
  font-family: 'Figtree', sans-serif;
  font-size: 13px; font-weight: 600;
  color: white;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a  { font-size: 14px; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom p { color: rgba(255,255,255,0.4); }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ── Responsive updates ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-visual { display: none; }
  .hero-subtitle { max-width: 100%; margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .care-inner { grid-template-columns: 1fr; gap: 40px; }
  .care-content { max-width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 60px 1fr; }
  .step-visual { display: none; }
  .step-reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .steps { gap: 16px; }
  .step { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .step-number { font-size: 32px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .download-buttons { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; max-width: 280px; justify-content: center; }
  .footer-links { grid-template-columns: 1fr; }
  .care-stats { gap: 16px; }
}
