/* ==========================================================================
   VillaFlow CRM - WhatsApp Villa & Accommodation Booking Engine
   Specialized Visual Experience: Clean, Fast, Practical, High-Contrast
   ========================================================================== */

:root {
  /* Color System */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  /* Villa & WhatsApp Accent Colors */
  --wa-dark-green: #075e54;
  --wa-teal: #128c7e;
  --wa-green: #25d366;
  --wa-chat-bg: #efeae2;
  --wa-bubble-in: #ffffff;
  --wa-bubble-out: #e7ffdb;
  --wa-tick-blue: #34b7f1;

  /* Hospitality Accents */
  --villa-sand: #fef3c7;
  --villa-gold: #d97706;
  --villa-pool: #0284c7;
  --villa-pool-light: #e0f2fe;
  --villa-coral: #e11d48;

  /* Elevation & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-float: 0 20px 40px -10px rgba(15, 23, 42, 0.12);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */
.top-banner {
  background-color: #0f172a;
  color: #f8fafc;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--wa-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.banner-link {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 20px;
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon.villa-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #065f46, #047857);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(6, 95, 70, 0.25);
}

.brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-badge {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

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

/* Buttons */
.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--wa-dark-green);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(7, 94, 84, 0.25);
}

.btn-primary:hover {
  background-color: #054840;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(7, 94, 84, 0.35);
}

.btn-outline {
  background-color: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background-color: var(--bg-subtle);
}

.btn-sm { font-size: 0.84rem; padding: 9px 16px; }
.btn-lg { font-size: 1rem; padding: 14px 26px; }
.btn-block { width: 100%; }

/* ==========================================================================
   Hero Section: Direct, Visual, Punchy
   ========================================================================== */
.hero-section {
  padding: 60px 20px 48px;
  background: radial-gradient(90% 65% at 50% 0%, #edf7f3 0%, var(--bg-main) 100%);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.hero-container {
  max-width: 960px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid #bbf7d0;
  color: #065f46;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
  box-shadow: var(--shadow-subtle);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--wa-green);
  border-radius: 50%;
}

.hero-headline {
  font-size: 2.85rem;
  line-height: 1.18;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.highlight-text {
  color: var(--wa-teal);
  display: inline-block;
}

.hero-subheadline {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

/* 4 Visual Metrics Cards */
.hero-metrics-strip {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.metric-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.metric-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 3px;
  line-height: 1.35;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 68px 20px;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 38px;
}

.section-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wa-teal);
  background-color: #e6f7f2;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Interactive Villa Demo Stage (Left Phone + Right CRM)
   ========================================================================== */
.demo-section {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

/* Villa Property Selector Tabs */
.scenario-selector {
  margin-bottom: 24px;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.scenario-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.scenario-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}

.scenario-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.scenario-btn:hover {
  border-color: var(--wa-teal);
  color: var(--wa-dark-green);
}

.scenario-btn.active {
  background-color: #075e54;
  color: #ffffff;
  border-color: #075e54;
  box-shadow: 0 2px 6px rgba(7, 94, 84, 0.25);
}

/* Side by Side Simulation Layout */
.simulation-stage {
  display: grid;
  grid-template-columns: 390px 90px 1fr;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}

.sim-column {
  display: flex;
  flex-direction: column;
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}

.column-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.status-indicator.live {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: #dcfce7;
  color: #166534;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.live-dot {
  width: 6px;
  height: 6px;
  background-color: #0284c7;
  border-radius: 50%;
  animation: pulseGreen 1.5s infinite;
}

/* ==========================================================================
   WhatsApp Smartphone Frame
   ========================================================================== */
.smartphone-frame {
  width: 100%;
  height: 600px;
  background: #000000;
  border-radius: 36px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.25), 0 0 0 8px #1e293b, 0 0 0 10px #334155;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.phone-notch {
  height: 20px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.speaker { width: 48px; height: 4px; background: #334155; border-radius: 2px; }
.camera { width: 8px; height: 8px; background: #1e293b; border-radius: 50%; border: 1px solid #334155; }

/* WhatsApp App Bar */
.wa-app-bar {
  background-color: var(--wa-dark-green);
  color: #ffffff;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-back-btn { font-size: 1.1rem; opacity: 0.85; }
.wa-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.wa-user-details { display: flex; flex-direction: column; }
.wa-user-name {
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wa-status { font-size: 0.68rem; color: #c7eed8; }
.wa-bar-right { display: flex; gap: 12px; font-size: 1.05rem; opacity: 0.9; }

/* Chat Container */
.wa-chat-container {
  flex: 1;
  background-color: var(--wa-chat-bg);
  background-image: radial-gradient(#d5cdc4 1px, transparent 1px);
  background-size: 18px 18px;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-date-pill {
  align-self: center;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.65rem;
  font-weight: 700;
  color: #555555;
  padding: 2px 10px;
  border-radius: 6px;
}

.encryption-notice {
  align-self: center;
  background: #ffeecd;
  color: #5c471f;
  font-size: 0.64rem;
  padding: 5px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-align: center;
  line-height: 1.3;
}

/* Chat Messages */
#waMessagesList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.msg-row { display: flex; width: 100%; }
.msg-row.bot { justify-content: flex-start; }
.msg-row.user { justify-content: flex-end; }

.msg-bubble {
  max-width: 86%;
  padding: 7px 10px 4px;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.38;
  color: #111b21;
  position: relative;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
  word-break: break-word;
  animation: popIn 0.2s ease-out;
}

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

.msg-row.bot .msg-bubble { background-color: var(--wa-bubble-in); border-top-left-radius: 0; }
.msg-row.user .msg-bubble { background-color: var(--wa-bubble-out); border-top-right-radius: 0; }

.msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 3px;
  font-size: 0.62rem;
  color: #667781;
}

.ticks { color: var(--wa-tick-blue); font-weight: 700; }

/* Rich Villa Media Card inside WhatsApp */
.wa-villa-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d1d7db;
  margin: 4px 0;
}

.wa-villa-img-wrap {
  position: relative;
  height: 120px;
  background: linear-gradient(135deg, #0284c7, #075e54);
  display: flex;
  align-items: flex-end;
  padding: 8px;
  color: #ffffff;
}

.wa-villa-badges {
  display: flex;
  gap: 4px;
}

.wa-badge-pill {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.wa-villa-body {
  padding: 8px 10px;
}

.wa-villa-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #111b21;
  display: flex;
  justify-content: space-between;
}

.wa-villa-specs {
  font-size: 0.72rem;
  color: #54656f;
  margin: 3px 0 6px;
}

.wa-villa-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed #e1e4e8;
  padding-top: 6px;
}

.wa-price-val {
  font-weight: 800;
  font-size: 0.95rem;
  color: #075e54;
}

.wa-avail-tag {
  font-size: 0.65rem;
  font-weight: 700;
  background: #dcfce7;
  color: #166534;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Typing Bubble */
.typing-bubble {
  align-self: flex-start;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 12px;
  border-top-left-radius: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.typing-bubble .dot {
  width: 6px;
  height: 6px;
  background-color: #8696a0;
  border-radius: 50%;
  animation: wave 1.2s infinite ease-in-out;
}
.typing-bubble .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-bubble .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes wave {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* Quick Action Buttons inside WhatsApp */
.wa-quick-actions {
  background: #f0f2f5;
  padding: 6px 8px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-top: 1px solid #e1e4e8;
}

.wa-action-btn {
  background: #ffffff;
  border: 1px solid #d1d7db;
  color: #008069;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wa-action-btn:hover {
  background: #008069;
  color: #ffffff;
  border-color: #008069;
}

/* Input Bar */
.wa-input-bar {
  background: #f0f2f5;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wa-input-emoji { font-size: 1.1rem; color: #54656f; cursor: pointer; }
.wa-input-bar input {
  flex: 1;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-family: inherit;
  outline: none;
}

.wa-send-btn {
  width: 32px;
  height: 32px;
  background: #00a884;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.phone-reset-bar {
  background: #0f172a;
  padding: 4px;
  text-align: center;
}

.btn-text-sm {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-text-sm:hover { color: #f8fafc; text-decoration: underline; }

/* ==========================================================================
   Sync Connector
   ========================================================================== */
.sync-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.bridge-line {
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.8));
}

.bridge-badge {
  background: #ffffff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.pulse-ring {
  width: 8px;
  height: 8px;
  background: #0284c7;
  border-radius: 50%;
  animation: pulseBlue 1.8s infinite;
}

@keyframes pulseBlue {
  0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(2, 132, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

/* ==========================================================================
   Connected Villa CRM & Calendar Dashboard
   ========================================================================== */
.crm-window-frame {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-card);
  height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.crm-top-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.crm-top-left { display: flex; align-items: center; gap: 10px; }
.crm-logo-pill {
  background: #065f46;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.crm-page-crumb { font-size: 0.8rem; color: var(--text-secondary); }

.crm-agent-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.agent-avatar {
  width: 20px;
  height: 20px;
  background: #0284c7;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

/* CRM Tabs */
.crm-tabs-strip {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  padding: 0 12px;
}

.crm-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.crm-tab:hover { color: var(--text-primary); }
.crm-tab.active {
  color: var(--wa-dark-green);
  border-bottom-color: var(--wa-dark-green);
  background: #ffffff;
}

/* CRM Content Area */
.crm-content-area {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #ffffff;
}

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

/* TAB 1: Booking Folio */
.lead-hero-card { display: flex; flex-direction: column; gap: 14px; }

.lead-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.lead-profile-info { display: flex; align-items: center; gap: 12px; }
.lead-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0284c7, #075e54);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.lead-name { font-size: 1.05rem; font-weight: 800; color: var(--text-primary); }
.lead-contact-meta { font-size: 0.78rem; color: var(--text-muted); }
.source-tag { color: #047857; font-weight: 700; }

.lead-score-box { text-align: right; }
.score-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.score-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.score-pending { background-color: #fef3c7; color: #b45309; }
.score-confirmed { background-color: #d1fae5; color: #065f46; }

/* Dates Strip Card */
.dates-strip-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.strip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.status-held {
  background: #fef3c7;
  color: #b45309;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
}

.date-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dp-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.dp-item.booked {
  border-color: #f59e0b;
  background: #fffbeb;
}

.dp-item.confirmed {
  border-color: #10b981;
  background: #ecfdf5;
}

.dp-day { font-size: 0.65rem; font-weight: 700; color: var(--text-muted); }
.dp-num { font-size: 0.88rem; font-weight: 800; color: var(--text-primary); margin: 2px 0; }
.dp-stat { font-size: 0.64rem; font-weight: 800; color: #b45309; }

/* Attributes Grid */
.lead-attributes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.attribute-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.attr-label { font-size: 0.68rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
.attr-value { font-size: 0.86rem; font-weight: 800; color: var(--text-primary); margin-top: 2px; }
.highlight-green { color: #047857; }

/* Caretaker Alert Box */
.caretaker-alert-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #166534;
}

.ct-icon { font-size: 1.2rem; line-height: 1; }
.ct-details strong { display: block; color: #065f46; font-size: 0.82rem; margin-bottom: 2px; }

/* Lead Actions */
.crm-lead-actions {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}

.btn-takeover {
  flex: 1;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.btn-takeover:hover { background: #dc2626; color: #ffffff; }

.btn-secondary-action {
  flex: 1;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.btn-secondary-action:hover { background: #166534; color: #ffffff; }

/* TAB 2: Villa Calendar Grid */
.villa-calendar-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.cal-legend {
  display: flex;
  gap: 12px;
  font-size: 0.72rem;
}

.leg-item { display: flex; align-items: center; gap: 4px; }
.leg-dot { width: 8px; height: 8px; border-radius: 50%; }
.leg-dot.avail { background: #cbd5e1; }
.leg-dot.held { background: #f59e0b; }
.leg-dot.booked { background: #ef4444; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day-cell {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  height: 52px;
  padding: 4px 6px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.cal-day-cell.header {
  background: var(--bg-subtle);
  border: none;
  height: auto;
  padding: 6px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cal-day-cell.past {
  background: #f8fafc;
  color: #94a3b8;
}

.cal-day-cell.avail-cell {
  background: #ffffff;
  color: #334155;
}

.cal-day-cell.held-cell {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
}

.cal-day-cell.booked-cell {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.c-badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  align-self: flex-start;
}

.c-badge.pulse {
  background: #f59e0b;
  color: #ffffff;
  animation: pulseAmber 1.5s infinite;
}

@keyframes pulseAmber {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* TAB 3: Automations Stream */
.automations-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auto-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 0.8rem;
}

.auto-item.completed {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.auto-item.queued {
  background: var(--bg-main);
  border-left: 3px solid #0284c7;
}

.auto-check {
  background: #10b981;
  color: #ffffff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.auto-time {
  font-size: 0.68rem;
  font-weight: 800;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.auto-body strong { display: block; color: var(--text-primary); margin-bottom: 2px; }
.auto-body p { color: var(--text-secondary); line-height: 1.4; font-size: 0.76rem; }

/* CRM Sync Toast */
.crm-toast {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.76rem;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-float);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 20;
}

.crm-toast.show { transform: translateY(0); opacity: 1; }
.toast-dot { width: 7px; height: 7px; background: #38bdf8; border-radius: 50%; }

/* Explainer Points under Demo */
.simulation-explainer {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.explainer-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.exp-icon { font-size: 1.4rem; line-height: 1; }
.exp-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.45; }
.exp-text strong { color: var(--text-primary); }

/* ==========================================================================
   Visual 4-Step Cycle
   ========================================================================== */
.process-section {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.visual-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.flow-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.flow-card:hover {
  transform: translateY(-3px);
  border-color: var(--wa-teal);
  box-shadow: var(--shadow-card);
}

.flow-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--wa-teal);
  background: #e6f7f2;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
  margin-bottom: 12px;
}

.flow-icon { font-size: 2rem; margin-bottom: 10px; }

.flow-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.flow-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.flow-tag {
  background: #ffffff;
  border: 1px solid var(--border-light);
  font-size: 0.72rem;
  font-weight: 700;
  color: #047857;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

/* ==========================================================================
   Before vs After Comparison Section
   ========================================================================== */
.comparison-section {
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-light);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.comparison-card {
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}

.card-old { background: #ffffff; border: 1px solid #fed7aa; }
.card-new { background: #ffffff; border: 2px solid #a7f3d0; box-shadow: 0 10px 30px -5px rgba(5, 150, 105, 0.12); }

.comp-header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.comp-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.comp-badge.bad { background: #fee2e2; color: #991b1b; }
.comp-badge.good { background: #d1fae5; color: #065f46; }

.comp-header h3 { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); }
.comp-subtitle { font-size: 0.84rem; color: var(--text-muted); }

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.comp-list li strong { color: var(--text-primary); }
.card-old .comp-icon { color: #ef4444; font-size: 1rem; line-height: 1.4; }
.card-new .comp-icon { color: #10b981; font-size: 1.1rem; line-height: 1.4; }

/* ==========================================================================
   Villa Revenue Calculator
   ========================================================================== */
.calculator-section {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
}

.calc-inputs-col { display: flex; flex-direction: column; gap: 22px; }
.calc-group { display: flex; flex-direction: column; gap: 8px; }

.calc-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.calc-val-pill {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--wa-dark-green);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #cbd5e1;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--wa-teal);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(18, 140, 126, 0.4);
}

.range-meta { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-muted); }

.custom-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
}

.currency-switcher-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.small-hint { font-size: 0.75rem; color: var(--text-muted); }
.curr-btn {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.curr-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Results Card */
.results-card {
  background: #ffffff;
  border: 2px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: 0 10px 25px -4px rgba(2, 132, 199, 0.1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.res-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #e0f2fe;
  color: #0369a1;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.res-big-item { border-bottom: 1px solid var(--border-light); padding-bottom: 16px; }
.res-label { font-size: 0.88rem; color: var(--text-secondary); font-weight: 700; }
.res-big-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #059669;
  letter-spacing: -0.02em;
  margin: 4px 0 2px;
}

.res-sub { font-size: 0.8rem; color: var(--text-muted); }

.res-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.res-mini-box {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
}

.mini-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 700; }
.mini-val { font-size: 1.15rem; font-weight: 800; color: var(--text-primary); margin: 2px 0; }
.mini-sub { font-size: 0.7rem; color: var(--text-muted); }

.calc-insight-callout {
  display: flex;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.calc-insight-callout svg { color: var(--villa-pool); flex-shrink: 0; margin-top: 2px; }

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-light);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover { border-color: var(--border-medium); }

.faq-question {
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-toggle { font-size: 1.4rem; color: var(--text-muted); line-height: 1; transition: transform 0.2s ease; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 20px;
}

.faq-item.open .faq-answer { max-height: 300px; padding: 0 20px 20px; }
.faq-answer p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.cta-card.villa-cta {
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-float);
}

.cta-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.cta-title { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.cta-desc { font-size: 1rem; line-height: 1.6; opacity: 0.9; margin-bottom: 22px; }
.cta-points { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; font-weight: 600; }

.cta-form-box {
  background: #ffffff;
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.form-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); }
.form-field input {
  padding: 10px 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}
.form-field input:focus { border-color: var(--wa-teal); }

.form-success-msg {
  display: none;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  margin-top: 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 36px 20px;
  font-size: 0.85rem;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand { font-size: 1.05rem; font-weight: 800; color: #ffffff; margin-bottom: 4px; }
.footer-tagline { max-width: 480px; font-size: 0.82rem; line-height: 1.45; }
.footer-right { text-align: right; display: flex; flex-direction: column; gap: 6px; }
.footer-badge span {
  background: #1e293b;
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.footer-copy { font-size: 0.74rem; color: #64748b; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .simulation-stage {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sync-bridge { display: none; }
  .visual-flow-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-card.villa-cta { grid-template-columns: 1fr; padding: 32px 24px; }
  .calc-wrapper { grid-template-columns: 1fr; }
  .hero-headline { font-size: 2.3rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .visual-flow-grid { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .simulation-explainer { grid-template-columns: 1fr; }
  .date-pills-row { grid-template-columns: 1fr; }
  .footer-container { flex-direction: column; text-align: center; }
  .footer-right { text-align: center; }
}
