/* ----- CSS Reset & Variables for Light Medical SaaS ----- */
html {
  scroll-behavior: smooth;
}

:root {
  /* Colors - Light Theme */
  --bg-color: #f5f8fa;
  --bg-gradient: radial-gradient(circle at 50% 0%, #ffffff 0%, #ebf1f6 100%);
  
  /* Pure white backgrounds for popping cards */
  --panel-bg: rgba(255, 255, 255, 0.98);
  --panel-border: rgba(220, 226, 238, 0.6);
  
  /* Diffused deep 3D drop-shadows */
  --shadow-glass: 0 25px 65px rgba(12, 35, 65, 0.08), 0 10px 25px rgba(12, 35, 65, 0.04);
  --shadow-hover: 0 35px 80px rgba(0, 210, 255, 0.15), 0 15px 35px rgba(12, 35, 65, 0.08);
  
  /* Text */
  --text-primary: #151a24; /* Dark slate */
  --text-charcoal-max: #050a15; /* Ultra-dark for max contrast */
  --text-secondary: #4a5568; 
  --text-muted: #828c9e;
  
  /* Accents */
  --accent-color: #00d2ff; /* Neon cyan */
  --accent-color-hover: #00b8e6;
  --accent-glow: rgba(0, 210, 255, 0.3);
  --gradient-1: #00d2ff;
  --gradient-2: #3a7bd5;
  
  /* Typography & Transitions */
  --font-main: 'Outfit', sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-gradient);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.7; /* Increased for breathing room */
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Effects */
.medical-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(0, 210, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 210, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.medical-bg::before {
  content: "";
  position: absolute;
  top: -20%; left: -10%;
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.05) 0%, transparent 60%);
  border-radius: 50%;
  filter: blur(80px);
}

.medical-bg::after {
  content: "";
  position: absolute;
  bottom: -20%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(58, 123, 213, 0.04) 0%, transparent 60%);
  border-radius: 50%;
  filter: blur(80px);
}

.bg-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 800;
}

/* Layout & Components */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--panel-border);
  border-radius: 24px; /* Deep rounded corners for 3D feel */
  box-shadow: var(--shadow-glass);
}

main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  padding: 160px 20px 80px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.hero .subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 800px;
  margin: 0 auto;
}

/* Pricing Section */
.pricing-section {
  padding: 40px 0 120px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 80px;
}

.pricing-header h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.pricing-header p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  font-weight: 500;
}

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

.pricing-card {
  padding: 3.5rem; /* Drastically increased padding */
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.pricing-card:hover {
  transform: translateY(-12px);
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: var(--shadow-hover);
}

.card-header h3 {
  font-size: 1.95rem;
  margin-bottom: 1rem;
  font-weight: 900; /* Increased font-weight */
  color: var(--text-charcoal-max); /* Bolder, darker shade of black */
  letter-spacing: -0.5px;
}

.card-header .headline {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.card-audience {
  background: rgba(0, 210, 255, 0.04);
  border: 1px dashed rgba(0, 210, 255, 0.2);
  padding: 1.5rem;
  border-radius: 16px;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.card-audience strong {
  color: var(--gradient-2);
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.features-list {
  list-style: none;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.6rem; /* Substantial spacing */
  font-size: 1.05rem; /* Increased size */
  color: var(--text-secondary);
  line-height: 1.75; /* Breathing room */
}

.features-list li strong {
  color: var(--text-primary);
  font-weight: 700;
}

.icon-wrapper {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-right: 14px;
  color: #8fa0ba;
  margin-top: 2px;
}

.icon-wrapper.accent {
  color: var(--accent-color);
}

.card-value {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(13, 25, 45, 0.08);
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
}

.pricing-details {
  margin-bottom: 2.5rem;
}

.fee {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.fee .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.fee .price {
  font-size: 2.4rem; /* Increased size */
  font-weight: 900; /* Bolder font-weight */
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text-charcoal-max); /* Maximum contrast dark charcoal */
  letter-spacing: -1.5px; /* Tighter letter spacing for numbers */
}

.fee .frequency {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0;
}

.details-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* Most Popular Card Override */
.pricing-card.popular {
  /* Soft blue gradient background and glowing border */
  background: linear-gradient(160deg, #ffffff 0%, #f0faff 100%);
  border: 2px solid rgba(0, 210, 255, 0.5);
  transform: scale(1.04);
  z-index: 2;
  box-shadow: 0 0 35px rgba(0, 210, 255, 0.1), 0 25px 65px rgba(12, 35, 65, 0.08);
}

.pricing-card.popular:hover {
  transform: scale(1.04) translateY(-12px);
  box-shadow: 0 0 50px rgba(0, 210, 255, 0.2), 0 35px 80px rgba(12, 35, 65, 0.12);
}

.popular-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  color: #fff;
  padding: 8px 24px;
  border-radius: 24px;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 20px rgba(0, 210, 255, 0.4);
}

/* Buttons */
.cta-button {
  width: 100%;
  padding: 18px;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: inherit;
  text-align: center;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--accent-color), #00a3e0);
  color: #fff;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 210, 255, 0.35);
}

.cta-button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 210, 255, 0.5);
}

.cta-button.outline {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-primary);
  border: 1px solid rgba(0, 210, 255, 0.4);
}

.cta-button.outline:hover {
  background: rgba(0, 210, 255, 0.05);
  border-color: var(--accent-color);
  color: var(--gradient-2);
}

/* Terms Section */
.terms-section {
  padding: 0 0 40px; /* Reduced to fit CTA nicely */
}

.terms-container {
  padding: 4.5rem;
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.terms-icon {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(58, 123, 213, 0.1));
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gradient-2);
}

.terms-icon svg {
  width: 44px;
  height: 44px;
}

.terms-right h2 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
  font-weight: 800;
}

.terms-intro {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 3.5rem;
  max-width: 900px;
  line-height: 1.7;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.term-item h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--gradient-2);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0, 210, 255, 0.2);
  font-weight: 800;
}

.term-item p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.term-item strong {
  color: var(--text-primary);
  font-weight: 800;
}

/* CTA Section - Split Visual Layout */
.cta-section {
  background: linear-gradient(160deg, rgba(240, 248, 255, 0.8), rgba(220, 238, 255, 0.6));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  margin: 0 auto 100px;
  border: 1px solid rgba(0, 210, 255, 0.3);
  box-shadow: 0 15px 40px rgba(12, 35, 65, 0.05);
  max-width: 1200px;
  overflow: hidden;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 480px;
}

.cta-content-left {
  padding: 4.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.cta-content-left h2 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  font-weight: 800;
  color: var(--text-charcoal-max);
  line-height: 1.15;
}

.cta-content-left p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.6;
  max-width: 95%;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  justify-content: flex-start;
  max-width: 350px;
}

.cta-visual-right {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(0, 210, 255, 0.05) 0%, transparent 70%);
}

.cta-visual-right::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 30%;
  background: linear-gradient(to right, rgba(226, 241, 255, 1) 0%, transparent 100%);
  z-index: 3;
}

.dr-noma-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.vertical-text-bg {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 6rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  letter-spacing: 5px;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
}

/* Floating Dr. Noma Widget */
.floating-dr-noma {
  position: fixed;
  top: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 24px 8px 8px;
  border-radius: 50px;
  text-decoration: none;
  z-index: 1000;
  border: 1px solid rgba(0, 210, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 210, 255, 0.15), 0 5px 15px rgba(12, 35, 65, 0.05);
  transition: var(--transition-smooth);
}

.floating-dr-noma:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 210, 255, 0.25), 0 8px 20px rgba(12, 35, 65, 0.08);
  border-color: rgba(0, 210, 255, 0.7);
}

.avatar-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 3px; 
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  flex-shrink: 0;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.dr-noma-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid #fff;
  background: #fff;
}

.floating-text {
  color: var(--text-charcoal-max);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: left;
}

.floating-text small {
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer */
footer {
  text-align: center;
  padding: 50px 20px;
  border-top: 1px solid rgba(13, 25, 45, 0.05);
  background: rgba(255, 255, 255, 0.5);
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--accent-color);
}

.accent-dot {
  color: var(--accent-color);
}

footer p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Media Queries */
@media (max-width: 1300px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-card.popular {
    transform: scale(1);
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .pricing-card.popular:hover {
    transform: translateY(-12px);
  }
}

@media (max-width: 950px) {
  .terms-container {
    flex-direction: column;
    padding: 3.5rem;
  }
  
  .terms-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cta-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-visual-right {
    min-height: 350px;
  }
  
  .cta-visual-right::before {
    background: linear-gradient(to bottom, rgba(230, 243, 255, 1) 0%, transparent 100%);
    width: 100%;
    height: 30%;
    bottom: auto;
  }
}

@media (max-width: 768px) {
  .floating-dr-noma {
    top: auto;
    bottom: 20px;
    right: 20px;
    padding: 6px 16px 6px 6px;
    transform: scale(0.9);
  }
  .floating-dr-noma:hover {
    transform: scale(0.95) translateY(-5px);
  }

  .hero {
    padding: 130px 20px 60px;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.popular {
    max-width: none;
  }

  .terms-container {
    padding: 2.5rem;
  }
  
  .pricing-card {
    padding: 2.5rem;
  }
  
  .cta-content-left {
    padding: 3.5rem 2rem;
  }
}
