/* Custom Stylesheet for Calmi Portfolio */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette based on Calmi Logo */
  --primary: #13385c;        /* Deep slate blue from logo text */
  --primary-light: #22517f;  /* Lighter blue for hovers */
  --secondary: #5f9fa9;      /* Teal/Cyan shade from logo */
  --secondary-light: #79b9c0;/* Bright teal/cyan */
  --accent: #76c08e;         /* Soft green from logo */
  --accent-light: #8ac99d;   /* Light green */
  --accent-bg: #eaf6ee;      /* Soft green tint for badges */
  --primary-bg: #eef4f8;     /* Soft blue tint */
  --background: #f4f8f9;     /* Soft light background for visual calm */
  --surface: #ffffff;
  --text: #2c3e50;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  
  /* Layout and Styling variables */
  --shadow-sm: 0 4px 12px rgba(19, 56, 92, 0.04);
  --shadow-md: 0 12px 32px rgba(19, 56, 92, 0.08);
  --shadow-lg: 0 20px 48px rgba(19, 56, 92, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button, input, textarea, select {
  font-family: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

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

.text-center {
  text-align: center;
}

.max-w-2xl {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* Badges and Buttons */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--primary-bg);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(19, 56, 92, 0.1);
}

.badge.accent {
  background-color: var(--accent-bg);
  color: #2e7d32;
  border-color: rgba(118, 192, 142, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(19, 56, 92, 0.15);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(19, 56, 92, 0.25);
}

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

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

.btn-teal {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(95, 159, 169, 0.15);
}

.btn-teal:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(95, 159, 169, 0.25);
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(244, 248, 249, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(19, 56, 92, 0.05);
  transition: var(--transition);
}

.header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-fallback {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-fallback span {
  color: var(--secondary);
}

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

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px 0;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121,185,192,0.15) 0%, rgba(244,248,249,0) 70%);
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118,192,142,0.1) 0%, rgba(244,248,249,0) 70%);
  z-index: -1;
}

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

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

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

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(19, 56, 92, 0.1);
  padding-top: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-icon {
  color: var(--accent);
  font-size: 1.25rem;
}

.trust-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Feature Toggle & Content */
.toggle-wrapper {
  display: inline-flex;
  background-color: var(--primary-bg);
  padding: 6px;
  border-radius: 100px;
  margin-bottom: 40px;
  border: 1px solid rgba(19, 56, 92, 0.05);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.toggle-btn {
  padding: 12px 28px;
  border-radius: 100px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 0.95rem;
}

.toggle-btn.active {
  background-color: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-pane.active {
  display: block;
}

/* Main Showcase Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.showcase-grid.reverse {
  grid-template-columns: 1.25fr 0.75fr;
  gap: 50px;
}

.showcase-content h3 {
  font-size: 2.25rem;
  margin-bottom: 24px;
}

.showcase-text {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 40px;
}

.feature-list li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 18px;
  font-weight: 500;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background-color: var(--accent-bg);
  color: #2e7d32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

/* Interactive Simulators */
/* B2C: Mobile App simulator */
.mockup-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-shell {
  width: 320px;
  height: 640px;
  background-color: #0f172a;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4);
  border: 4px solid #334155;
  position: relative;
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background-color: var(--white);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.phone-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.phone-header .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.phone-header-info {
  flex-grow: 1;
}

.phone-header-info h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

.phone-header-info span {
  font-size: 0.7rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-header-info span::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

.phone-chat-area {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: #f8fafc;
}

.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 18px;
  line-height: 1.4;
  font-size: 0.8rem;
  animation: popIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

.chat-bubble.ai {
  background-color: var(--white);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.chat-bubble.user {
  background-color: var(--primary);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-suggestions {
  padding: 10px 16px;
  background-color: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-suggestions p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.suggest-btn {
  background-color: var(--primary-bg);
  border: 1px solid rgba(19, 56, 92, 0.1);
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 20px;
  text-align: left;
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.suggest-btn:hover {
  background-color: var(--primary);
  color: var(--white);
}

.phone-input-bar {
  padding: 12px 16px;
  background-color: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-input-bar input {
  flex-grow: 1;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 20px;
  outline: none;
  font-size: 0.8rem;
  background-color: #f8fafc;
}

.phone-input-bar button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-mockup {
  width: 100%;
  max-width: 1000px;
  min-height: 580px;
  height: auto;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dash-header {
  height: 56px;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.dash-dots {
  display: flex;
  gap: 6px;
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dash-dot.red { background-color: #ef4444; }
.dash-dot.yellow { background-color: #eab308; }
.dash-dot.green { background-color: #22c55e; }

.dash-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.dash-body {
  flex-grow: 1;
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 524px;
}

.dash-sidebar {
  background-color: #f8fafc;
  border-right: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-sidebar h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.patient-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.patient-item {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.patient-item.active {
  background-color: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
}

.patient-item .indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dash-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-content-header h4 {
  font-size: 1.35rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  background-color: var(--white);
}

.stat-card h5 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.progress-bar-container {
  height: 8px;
  background-color: var(--primary-bg);
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--secondary);
  width: 0;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar-fill.accent {
  background-color: var(--accent);
}

.dash-alerts {
  border: 1px solid rgba(118, 192, 142, 0.2);
  background-color: var(--accent-bg);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: #1b5e20;
}

.dash-alerts strong {
  display: block;
  margin-bottom: 4px;
}

/* Pricing Section */
.pricing-header {
  margin-bottom: 60px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

/* Grid for 5 cards in B2B */
.pricing-grid.b2b-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.pricing-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(19, 56, 92, 0.15);
}

.pricing-card.recommended {
  border: 2px solid var(--secondary);
  box-shadow: var(--shadow-md);
}

.pricing-card.recommended::before {
  content: 'RECOMENDADO';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.plan-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
}

.plan-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  min-height: 48px;
}

.plan-features {
  list-style: none;
  margin-bottom: 40px;
  flex-grow: 1;
}

.plan-features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--text);
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.plan-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.5;
}

.plan-features li.disabled::before {
  content: "✕";
  color: #ef4444;
}

/* Specific styling adjust for 5 cards to fit nicely */
.pricing-grid.b2b-grid .pricing-card {
  padding: 24px 16px;
}

.pricing-grid.b2b-grid .plan-price {
  font-size: 1.6rem;
}

.pricing-grid.b2b-grid .plan-name {
  font-size: 1.1rem;
}

.pricing-grid.b2b-grid .plan-desc {
  font-size: 0.8rem;
  min-height: 40px;
  margin-bottom: 20px;
}

.pricing-grid.b2b-grid .plan-features li {
  font-size: 0.8rem;
  padding-left: 20px;
  margin-bottom: 10px;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.contact-info h3 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-text {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.contact-icon {
  width: 44px;
  height: 44px;
  background-color: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h5 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 24px;
}

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

.form-control {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition);
  background-color: #f8fafc;
}

.form-control:focus {
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(19, 56, 92, 0.08);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background-color: var(--accent-bg);
  color: #1b5e20;
  border: 1px solid rgba(118, 192, 142, 0.2);
}

.form-status.error {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fee2e2;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 80px 0 40px 0;
  font-size: 0.95rem;
}

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

.footer-brand h4 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  max-width: 320px;
}

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

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

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

.footer-links h5 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

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

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

.footer-links a {
  color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
  color: var(--secondary-light);
  padding-left: 4px;
}

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

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.8) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

/* Responsiveness */
@media (max-width: 1024px) {
  .hero-grid, .showcase-grid, .showcase-grid.reverse, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Show text content on top of mockup on mobile for consistency */
  .showcase-grid.reverse .showcase-content {
    order: -1;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid.b2b-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
  }
  
  .nav-menu.open {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-cta {
    display: none;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid.b2b-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-form-wrapper {
    padding: 28px;
  }
}

/* Specific styling for mobile screens (Dashboard and forms) */
@media (max-width: 600px) {
  .dashboard-mockup {
    height: auto;
    min-height: 520px;
  }
  
  .dash-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
  }
  
  .dash-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    overflow-x: auto;
  }
  
  .dash-sidebar h5 {
    display: none; /* Hide header text on mobile */
  }
  
  .patient-list {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 2px;
  }
  
  .patient-item {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  
  .dash-content {
    padding: 16px;
    gap: 14px;
  }
  
  .dash-grid {
    grid-template-columns: 1fr; /* Stack graphs */
    gap: 12px;
  }
  
  .stat-card {
    padding: 12px;
  }
  
  .stat-value {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .pricing-grid.b2b-grid {
    grid-template-columns: 1fr;
  }
  
  .glass-card {
    padding: 24px 16px;
  }
  
  .phone-shell {
    width: 290px;
    height: 580px;
    padding: 8px;
    border-radius: 30px;
  }
  
  .phone-screen {
    border-radius: 22px;
  }
}

