/* ==========================================================================
   D-KLINIC THEME STYLES (CLINIC-THEME.CSS)
   Medical Tech Aesthetic, Emerald Green (#10B981), Teal/Deep Cyan (#0F766E), Light Clean Medical UI
   ========================================================================== */

/* Hero Section */
.clinic-hero {
  position: relative;
  padding: 4.5rem 0 6rem 0;
  background: radial-gradient(1200px circle at 50% 10%, rgba(16, 185, 129, 0.08) 0%, rgba(248, 250, 252, 0.9) 70%), var(--clinic-bg);
  overflow: hidden;
}

.clinic-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  color: #059669;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-main-title {
  font-size: 3.25rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-main-title span {
  background: linear-gradient(135deg, #10B981 0%, #0F766E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 500;
}

.trust-item svg {
  color: var(--clinic-primary);
  width: 18px;
  height: 18px;
}

/* Hero Interactive Dashboard Mockup */
.clinic-dashboard-frame {
  position: relative;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 25px 60px -15px rgba(16, 185, 129, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.5rem;
}

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

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

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

.dash-dot.red { background: #EF4444; }
.dash-dot.yellow { background: #F59E0B; }
.dash-dot.green { background: #10B981; }

.dash-status-pill {
  font-size: 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Mini Dashboard Grid inside mockup */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.dash-stat-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  transition: all var(--transition-fast);
}

.dash-stat-box:hover {
  background: var(--white);
  border-color: var(--clinic-primary);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.dash-stat-label {
  font-size: 0.72rem;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.dash-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  font-family: var(--font-en);
}

.dash-stat-trend {
  font-size: 0.7rem;
  color: #059669;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Patient Queue Simulation in Mockup */
.dash-queue-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.dash-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.dash-title-small {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-800);
}

.dash-queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dash-queue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  border-left: 3px solid var(--clinic-primary);
  font-size: 0.82rem;
  transition: all var(--transition-fast);
}

.dash-queue-row:hover {
  background: rgba(16, 185, 129, 0.06);
}

.patient-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.patient-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--clinic-gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.queue-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.badge-examining {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.badge-waiting {
  background: rgba(245, 158, 11, 0.15);
  color: #D97706;
}

/* Floating interactive signature badge */
.dash-floating-card {
  position: absolute;
  bottom: -20px;
  left: -25px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
  animation: floatSlow 4s ease-in-out infinite alternate;
}

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

.floating-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--clinic-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-text-main {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-800);
}

.floating-text-sub {
  font-size: 0.72rem;
  color: var(--clinic-primary);
  font-weight: 600;
}

/* Features Grid (6 Key Features) */
.clinic-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.85rem;
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.12);
}

.feature-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--clinic-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.feature-card:hover .feature-icon-wrap {
  background: var(--clinic-gradient);
  color: var(--white);
  box-shadow: var(--clinic-glow);
  transform: scale(1.05);
}

.feature-card-title {
  font-size: 1.25rem;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.feature-card-desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.feature-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clinic-secondary);
  background: rgba(15, 118, 110, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  width: fit-content;
}

/* Interactive Digital Signature Sandbox Demo */
.signature-sandbox-section {
  background: linear-gradient(180deg, var(--gray-50) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.signature-container-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.signature-preview-side {
  padding: 2.5rem;
  background: #FCFDFE;
  border-right: 1px solid var(--gray-200);
}

.consent-doc-mockup {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  color: var(--gray-700);
}

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

.signature-pad-side {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.canvas-wrapper {
  border: 2px dashed #10B981;
  border-radius: var(--radius-md);
  background: #F8FAFC;
  position: relative;
  height: 220px;
  cursor: crosshair;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#signatureCanvas {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
}

.canvas-hint {
  position: absolute;
  pointer-events: none;
  font-size: 0.85rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.signature-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Comparison Section */
.comparison-section {
  padding: 5.5rem 0;
  background: var(--white);
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--white);
}

.comparison-table th {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 2px solid var(--gray-200);
}

.comparison-table th.col-highlight {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-bottom-color: var(--clinic-primary);
}

.comparison-table td {
  padding: 1.1rem 1.5rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.comparison-table td.col-highlight {
  background: rgba(16, 185, 129, 0.04);
  font-weight: 600;
  color: var(--gray-900);
}

.check-green {
  color: #10B981;
  font-weight: bold;
}

.cross-red {
  color: #EF4444;
  font-weight: normal;
}

/* Pricing Section */
.pricing-section {
  padding: 5.5rem 0;
  background: var(--clinic-bg);
}

.pricing-billing-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.switch-toggle-btn {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--gray-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.switch-toggle-btn.active {
  background: var(--clinic-primary);
}

.switch-handle {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.switch-toggle-btn.active .switch-handle {
  transform: translateX(24px);
}

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

.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
  border-color: var(--clinic-primary);
  box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.2);
  transform: scale(1.03);
}

.pricing-card.popular:hover {
  transform: scale(1.03) translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clinic-gradient);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 1.1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}

.pricing-plan-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.pricing-plan-desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  min-height: 40px;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 1.75rem;
}

.price-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-900);
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gray-900);
  font-family: var(--font-en);
  line-height: 1;
}

.price-period {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.pricing-features-list {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--gray-700);
}

.pricing-feature-item svg {
  color: var(--clinic-primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Interactive ROI Calculator */
.roi-calculator-box {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.roi-slider-group {
  margin-bottom: 2rem;
}

.roi-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.roi-slider-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
}

.roi-slider-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--clinic-primary);
  font-family: var(--font-en);
}

.roi-range-input {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--gray-200);
  accent-color: var(--clinic-primary);
  outline: none;
}

.roi-result-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 118, 110, 0.05) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.roi-result-num {
  font-size: 3.2rem;
  font-weight: 800;
  color: #059669;
  font-family: var(--font-en);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.roi-result-sub {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

/* Call to Action Banner */
.clinic-cta-banner {
  padding: 5rem 0;
  background: var(--clinic-gradient);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-banner-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.cta-banner-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.cta-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-white-pill {
  background: var(--white);
  color: var(--clinic-secondary);
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-white-pill:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
