/* RecallFlow Styles */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #10b981;
  --accent: #f59e0b;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-light: #f9fafb;
  --border: #e5e7eb;
  --success: #10b981;
  --error: #ef4444;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo-icon {
  font-size: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-login {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.btn-primary {
  background: var(--primary);
  color: white !important;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background 0.3s;
}

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

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.highlight {
  color: #fbbf24;
  position: relative;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  margin-bottom: 3rem;
}

.btn-hero {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 16px 40px;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-hero-large {
  padding: 20px 50px;
  font-size: 1.4rem;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #fbbf24;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text);
}

/* Problem Section */
.problem-section {
  background: var(--bg-light);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.problem-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
}

.problem-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.problem-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--error);
}

.problem-card p {
  color: var(--text-light);
}

/* Solution Section */
.solution-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.phone-mockup {
  background: #1f2937;
  border-radius: 30px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 350px;
  margin: 0 auto;
}

.phone-screen {
  background: white;
  border-radius: 20px;
  padding: 20px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sms-bubble {
  background: #e5e7eb;
  padding: 15px;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  max-width: 80%;
  animation: slideIn 0.3s ease-out;
}

.sms-reply {
  background: var(--primary);
  color: white;
  margin-left: auto;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 4px;
}

.sms-time {
  font-size: 0.75rem;
  opacity: 0.6;
  display: block;
  margin-top: 5px;
}

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

.solution-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.check-list {
  list-style: none;
  margin-bottom: 2rem;
}

.check-list li {
  padding: 12px 0;
  font-size: 1.1rem;
  color: var(--text-light);
}

.btn-secondary {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-secondary:hover {
  background: #059669;
}

/* Features Section */
.features-section {
  background: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
  background: var(--bg-light);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Toasts and small UI helpers */
.toast-container {
  position: fixed;
  right: 16px;
  top: 80px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: white;
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(31,41,55,0.08);
  transform: translateY(-6px);
  opacity: 0;
  transition: all 0.25s ease;
}
.toast.visible { transform: translateY(0); opacity: 1; }
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--error); }

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.1);
  border-top-color: rgba(0,0,0,0.6);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.stars {
  color: #fbbf24;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  line-height: 1.8;
}

.testimonial-author strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ROI Calculator */
.roi-calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.input-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
}

.calculator-results {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
}

.calculator-results h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.result-big {
  font-size: 3rem;
  font-weight: 800;
  color: var(--error);
  margin: 1rem 0;
}

.result-detail {
  margin: 1.5rem 0;
  padding: 1rem;
  background: white;
  border-radius: 6px;
}

.result-detail span {
  display: block;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.result-detail strong {
  color: var(--success);
  font-size: 1.25rem;
}

/* Dashboard specific styles */
.dashboard {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #1f2937;
  color: white;
  padding: 2rem 0;
}

.sidebar-logo {
  padding: 0 1.5rem;
  margin-bottom: 2rem;
}

.sidebar .logo {
  display: flex;
  gap: 8px;
  align-items: center;
  color: white;
  font-weight: 700;
}

.sidebar .logo-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.sidebar-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.3s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
  background: #374151;
  color: white;
}

.main-content {
  padding: 2rem;
  background: var(--bg-light);
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: white;
  padding: 1.25rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.stat-card h3 {
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-card .number {
  font-size: 1.75rem;
  font-weight: 800;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.upload-area {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.btn { /* reuse primary style but ensure proper look on dashboard */
  background: var(--primary);
  color: white;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-success { background: var(--success); }

table { width: 100%; border-collapse: collapse; }
thead { background: #f9fafb; }
th, td { padding: 0.65rem; text-align: left; border-bottom: 1px solid var(--border); }
th { font-weight: 700; color: var(--text-light); font-size: 0.9rem; }

.badge { display:inline-block; padding: 0.25rem 0.6rem; border-radius: 999px; font-weight:700; font-size:0.8rem }
.badge-scheduled { background:#dbeafe; color:#1e40af }
.badge-reminded { background:#fef3c7; color:#92400e }
.badge-confirmed { background:#d1fae5; color:#065f46 }

/* Modal */
.modal { position:fixed; inset:0; background: rgba(15,23,42,0.6); display:flex; align-items:center; justify-content:center; z-index:2000 }
.modal-content { background:white; width:720px; max-width:95%; border-radius:8px; overflow:hidden }
.modal-content header { display:flex; justify-content:space-between; align-items:center; padding:1rem; border-bottom:1px solid var(--border) }
.modal-content .modal-body { padding:1rem }
.modal-content footer { padding:1rem; border-top:1px solid var(--border); display:flex; gap:0.5rem; justify-content:flex-end }
.modal-close { background:none; border:none; font-size:1.25rem; cursor:pointer }

.form-row { margin-bottom:0.75rem }
.form-row label { display:block; font-weight:700; margin-bottom:0.25rem }
.form-row input, .form-row select, .form-row textarea { width:100%; padding:0.6rem; border:1px solid var(--border); border-radius:6px }

@media (max-width: 800px) {
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { display:flex; gap:1rem; padding:1rem; overflow:auto }
  .sidebar-menu a { display:inline-block }
}

.roi-total {
  background: var(--primary);
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  text-align: center;
}

.roi-final {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fbbf24;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 100px 0;
}

.final-cta h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.final-cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Footer */
.footer {
  background: #1f2937;
  color: #9ca3af;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-col a {
  display: block;
  color: #9ca3af;
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }
  
  .solution-content {
    grid-template-columns: 1fr;
  }
  
  .roi-calculator {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none; /* TODO: Add mobile menu */
  }
}
/* Login/Signup Pages */
.login-container,
.signup-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
}

.login-box,
.signup-box {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header,
.signup-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header .logo,
.signup-header .logo {
  display: inline-flex;
  margin-bottom: 1rem;
}

.login-header h1,
.signup-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.login-header p,
.signup-header p {
  color: var(--text-light);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.forgot-password {
  text-align: right;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

.forgot-password a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
}

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: var(--primary-dark);
}

.btn-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.divider {
  text-align: center;
  margin: 2rem 0;
  color: var(--text-light);
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: var(--border);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.error-message {
  background: #fee2e2;
  color: #991b1b;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: none;
}

.success-message {
  background: #d1fae5;
  color: #065f46;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: none;
}

.signup-link,
.login-link {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-light);
}

.signup-link a,
.login-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.signup-box .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.remember-me input[type="checkbox"] {
  width: auto;
}

/* Signup specific styles */
.plan-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.plan-option {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
}

.plan-option:hover {
  border-color: var(--primary);
}

.plan-option.selected {
  border-color: var(--primary);
  background: #eff6ff;
}

.plan-option input[type="radio"] {
  display: none;
}

.plan-name {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.plan-price {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 700;
  word-wrap: break-word;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.plan-price span {
  font-size: 0.65rem;
  color: #6b7280;
}

.trial-badge {
  background: var(--success);
  color: white;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.3rem;
}

.terms {
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
  margin-top: 1.5rem;
}

.terms a {
  color: var(--primary);
  text-decoration: none;
}

@media (max-width: 640px) {
  .plan-selector {
    grid-template-columns: 1fr;
  }

  .signup-box .form-row {
    grid-template-columns: 1fr;
  }
}

/* Dashboard Modernization */
.sidebar-actions {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-compose,
.btn-logout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-logout {
  background: transparent;
  color: #9ca3af;
  border: 1px solid #4b5563;
}

.btn-logout:hover {
  background: #374151;
  color: white;
  border-color: #6b7280;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.card-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.stat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.stat-icon {
  font-size: 1.5rem;
}

.table-responsive {
  overflow-x: auto;
}

.button-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.help-content {
  line-height: 1.8;
}

.help-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.help-content ul {
  list-style: none;
  padding: 0;
}

.help-content ul li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
}

.help-content a {
  color: var(--primary);
  text-decoration: none;
}

.help-content a:hover {
  text-decoration: underline;
}

/* Opt-In Page Styles */
.optin-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
}

.optin-box {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  max-width: 550px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.optin-header {
  text-align: center;
  margin-bottom: 2rem;
}

.optin-header .logo {
  display: inline-flex;
  margin-bottom: 1rem;
}

.optin-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.optin-header p {
  color: var(--text-light);
  font-size: 1rem;
}

.optin-form {
  margin-bottom: 2rem;
}

.form-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.consent-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  gap: 0.75rem;
  cursor: pointer;
  align-items: flex-start;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.privacy-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 1rem;
}

.privacy-note a {
  color: var(--primary);
  text-decoration: none;
}

.privacy-note a:hover {
  text-decoration: underline;
}

.benefits {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.benefits h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits ul li {
  padding: 0.5rem 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .optin-box {
    padding: 2rem;
  }

  .button-group {
    flex-direction: column;
  }

  .button-group button {
    width: 100%;
  }
}

/* Pricing Page Styles */
.pricing-hero {
  padding: 80px 0 40px;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.pricing-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.pricing-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: -60px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.pricing-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
  border: 3px solid var(--primary);
}

.popular-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.875rem;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.plan-description {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.plan-price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.plan-price span {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-light);
}

.plan-period {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.plan-features li {
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.plan-features li .check {
  color: var(--success);
  font-size: 1.25rem;
}

.plan-features li .cross {
  color: var(--text-light);
  font-size: 1.25rem;
}

.plan-cta {
  width: 100%;
  padding: 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
  text-align: center;
  box-sizing: border-box;
}

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

.plan-cta-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

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

.plan-cta-secondary:hover {
  background: var(--primary);
  color: white;
}

.pricing-faq {
  max-width: 800px;
  margin: 80px auto;
  padding: 0 20px;
}

.pricing-faq h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.faq-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.faq-question {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.faq-answer {
  color: var(--text-light);
  line-height: 1.8;
}

.comparison-table {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  overflow-x: auto;
}

.comparison-table h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comparison-table thead {
  background: var(--bg-light);
}

.comparison-table th {
  padding: 1.5rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}

.comparison-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.check {
  color: var(--success);
  font-size: 1.5rem;
}

.cross {
  color: var(--text-light);
  font-size: 1.5rem
}
/* Calendar View Styles */
.calendar-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 1.2rem;
  min-width: 40px;
}

.month-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  min-width: 180px;
  text-align: center;
}

.calendar-legend {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.sms-color {
  background: #3b82f6;
}

.email-color {
  background: #8b5cf6;
}

.letter-color {
  background: #10b981;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.calendar-day-header {
  background: var(--bg-light);
  padding: 0.75rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-light);
  border-bottom: 2px solid var(--border);
}

.calendar-day {
  background: white;
  min-height: 100px;
  padding: 0.5rem;
  position: relative;
  transition: all 0.2s;
}

.calendar-day.empty {
  background: var(--bg-light);
}

.calendar-day.today {
  background: #eff6ff;
  border: 2px solid var(--primary);
}

.calendar-day.has-communications {
  cursor: pointer;
}

.calendar-day.has-communications:hover {
  background: #f9fafb;
  box-shadow: inset 0 0 0 2px var(--primary);
}

.day-number {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.communication-indicators {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.indicator {
  font-size: 0.75rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  display: inline-block;
  font-weight: 600;
}

.sms-indicator {
  background: #dbeafe;
  color: #1e40af;
}

.email-indicator {
  background: #ede9fe;
  color: #5b21b6;
}

.letter-indicator {
  background: #d1fae5;
  color: #065f46;
}

/* Day Details */
#dayDetails {
  margin-top: 1rem;
}

#dayDetailsList {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.communication-item {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  transition: all 0.2s;
}

.communication-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.comm-icon {
  font-size: 1.5rem;
  width: 32px;
  text-align: center;
}

.comm-patient {
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.comm-time {
  font-size: 0.875rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .calendar-grid {
    font-size: 0.75rem;
  }

  .calendar-day {
    min-height: 80px;
    padding: 0.25rem;
  }

  .day-number {
    font-size: 0.75rem;
  }

  .indicator {
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
  }

  .calendar-legend {
    flex-wrap: wrap;
    gap: 1rem;
  }
}