/* DOCTI PRO — LANDING PAGE (LIGHT MODE, DOCTOR-FACING) */

body {
  background: var(--bg-light) !important;
  color: var(--ink) !important;
}

.pro-nav {
  background: rgba(247,247,250,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

.pro-card {
  background: var(--surface-light);
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all var(--t-normal);
}
.pro-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.hero-accent {
  background: linear-gradient(135deg, #EBF4FA 0%, #F7F7FA 60%);
}

.hero-stat {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--docti-blue);
}

.pain-stat {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--docti-orange);
}

.feature-alternating:nth-child(even) .feature-visual { order: -1; }
@media (max-width: 768px) {
  .feature-alternating:nth-child(even) .feature-visual { order: 0; }
}

.video-placeholder {
  aspect-ratio: 16/9;
  background: #EBF4FA;
  border-radius: var(--r-card);
  border: 2px dashed var(--divider);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.play-btn {
  width: 72px; height: 72px;
  background: rgba(119,177,204,0.15);
  border: 2px solid var(--docti-blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--t-normal);
}
.play-btn:hover { background: var(--docti-blue); }
.play-btn:hover svg { color: white !important; }

.waitlist-card {
  background: var(--surface-light);
  border-radius: var(--r-card);
  border: 1px solid var(--divider);
  box-shadow: 0 20px 60px rgba(119,177,204,0.15);
}

.pro-input {
  background-color: var(--bg-light);
  background-image: none; /* base — only .pro-select adds an arrow */
  border: 1.5px solid var(--divider);
  border-radius: var(--r-input);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  width: 100%;
  outline: none;
  transition: border-color var(--t-fast);
  /* Strip native styling on iOS Safari + legacy IE/Edge to prevent
     double-arrows and inner-shadow artifacts under selects. */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Ensure no overlay/shadow bleeds through on iOS */
  -webkit-text-fill-color: var(--ink);
  /* Avoid iOS rounded-pill default for selects */
  box-shadow: none;
}
.pro-input::-ms-expand { display: none; }
.pro-input::placeholder { color: var(--muted); }
.pro-input:focus {
  border-color: var(--docti-blue);
  box-shadow: 0 0 0 3px rgba(119,177,204,0.12);
}
/* iOS Safari zooms inputs below 16px on focus, which causes layout
   jumps and visible artifacts around selects. Force 16px on phones. */
@media (max-width: 640px) {
  .pro-input { font-size: 16px; }
}

.pro-section-alt {
  background: #EBF4FA;
}

.feature-icon-box {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.metric-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ink);
}

/* === FADE-IN ANIMATION === */
.fade-in-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === HERO STAT CARDS === */
.hero-stat-card {
  background: var(--surface-light);
  border: 1px solid var(--divider);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  min-width: 130px;
  text-align: center;
}

/* === TESTIMONIAL CARDS === */
.testimonial-card {
  background: var(--surface-light);
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

/* === KANBAN MOCK === */
.kanban-col {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 10px;
  flex: 1;
  min-width: 0;
}
.kanban-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 0 2px;
  /* Prevent overflow when column shrinks; allow break instead of escaping the box */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kanban-item {
  background: var(--surface-light);
  border: 1px solid var(--divider);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 500;
}

/* === WHATSAPP MOCK === */
.wa-bubble {
  border-radius: 18px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 80%;
}
.wa-bubble-in {
  background: var(--surface-light);
  border: 1px solid var(--divider);
  color: var(--ink);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.wa-bubble-out {
  background: #DCF8C6;
  color: #1C1C1E;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

/* === SUCCESS STATE === */
.success-state {
  display: none;
}
.success-state.show {
  display: flex;
}

/* === SCROLL NAV SHADOW === */
.pro-nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* === SELECT ARROW (light mode) === */
/* IMPORTANT: appearance + -webkit-appearance must be 'none' on the
   element itself for iOS Safari to suppress its native chevron. Inheritance
   from .pro-input is unreliable on selects across Safari versions. */
.pro-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--bg-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%234A4A4F' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 40px;
  cursor: pointer;
  /* Prevent iOS rendering an extra inner shadow under the dropdown */
  box-shadow: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.pro-select::-ms-expand { display: none; }

/* === BRANDED PAIN-POINT ICONS === */
.pain-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(242,179,113,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--docti-orange);
  flex-shrink: 0;
}
.pain-icon svg { width: 20px; height: 20px; }
.pain-icon-blue {
  background: rgba(119,177,204,0.10);
  color: var(--docti-blue);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-stat { font-size: 2rem; }
  .pain-stat { font-size: 2rem; }
  .metric-number { font-size: 2rem; }
}

/* === MOBILE OPTIMIZATIONS (≤640px) === */
@media (max-width: 640px) {
  /* Tighter section padding so content breathes on phones */
  .docti-section { padding-top: 48px; padding-bottom: 48px; }
  .docti-container { padding-left: 16px; padding-right: 16px; }

  /* Hero — keep bullets readable, prevent CTA overflow */
  .hero-stat-card { min-width: 0; padding: 12px 14px; flex: 1 1 calc(50% - 8px); }
  .hero-stat-card > div:first-child { font-size: 1.4rem !important; }

  /* Pain-point cards — full bleed, less padding */
  .pro-card { padding: 18px !important; }

  /* Feature alternating — tighter gap */
  .feature-alternating { gap: 32px !important; }

  /* Kanban — compact cells, allow scroll cue */
  .kanban-col { padding: 8px; }
  .kanban-item { font-size: 10px; padding: 6px 8px; }
  .kanban-col-title { font-size: 9px; }

  /* Testimonials — less padding */
  .testimonial-card { padding: 20px; }

  /* WhatsApp mockup — smaller bubbles */
  .wa-bubble { font-size: 12px; padding: 8px 12px; }

  /* Waitlist card — full-width on phones */
  .waitlist-card { border-radius: 20px; }

  /* Force CTAs to be full-width on small screens */
  .btn-lg { width: 100%; justify-content: center; }
}

/* === MOBILE — very narrow (≤380px) === */
@media (max-width: 380px) {
  .hero-stat-card { flex: 1 1 100%; }
  .pain-icon { width: 36px; height: 36px; }
  .pain-icon svg { width: 18px; height: 18px; }
}
