/* ==========================================================================
   AI CHIEF - MODERN BUTTER AESTHETICS & MOTION SYSTEM
   Theme: Pure White & Purple (#EEF2FF, #4F46E5, #6366F1, #FFFFFF)
   Engineered for Real Estate Teams & Brokerages
   ========================================================================== */

:root {
  /* Motion Curves */
  --butter-ease: cubic-bezier(0.200, 0.715, 0.205, 0.990);
  --butter-reveal: cubic-bezier(0, 0, 0, 1);
  --butter-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* White & Purple Palette */
  --butter-white: #ffffff;
  --butter-bg-canvas: #FAFAFD;
  --butter-bg-tint: #EEF2FF;
  --butter-purple-primary: #4F46E5;
  --butter-purple-vivid: #6366F1;
  --butter-purple-deep: #3730A3;
  --butter-purple-light: #A5B4FC;
  --butter-purple-subtle: rgba(99, 102, 241, 0.08);
  --butter-purple-border: rgba(99, 102, 241, 0.16);
  --butter-glow: 0 8px 32px rgba(79, 70, 229, 0.12);

  /* Squircle Geometry */
  --squircle-hero: 36px;
  --squircle-card: 24px;
  --squircle-pill: 9999px;
}

/* --------------------------------------------------------------------------
   1. BUTTER TYPOGRAPHY & PILLS
   -------------------------------------------------------------------------- */
.butter-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: var(--squircle-pill);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: var(--butter-purple-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.05);
  animation: butterFadeIn 0.8s var(--butter-reveal) forwards;
}

.butter-hero-eyebrow .pulsing-dot {
  width: 8px;
  height: 8px;
  background: var(--butter-purple-vivid);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--butter-purple-vivid);
  animation: butterPulse 2s infinite;
}

.butter-headline-mask {
  overflow: hidden;
  display: block;
}

.butter-headline-mask span {
  display: inline-block;
  transform: translateY(110%);
  animation: butterSlideUp 0.9s var(--butter-reveal) forwards;
}

.butter-headline-mask:nth-child(1) span { animation-delay: 0.1s; }
.butter-headline-mask:nth-child(2) span { animation-delay: 0.25s; }

@keyframes butterSlideUp {
  0% { transform: translateY(110%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes butterFadeIn {
  0% { opacity: 0; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes butterPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

/* --------------------------------------------------------------------------
   2. SIMPLE HERO PRODUCT SHOWCASE CARD
   -------------------------------------------------------------------------- */
.simple-hero-card {
  width: 100%;
  max-width: 1040px;
  margin: 44px auto 0;
  background: var(--butter-white);
  border-radius: var(--squircle-hero);
  border: 1px solid var(--butter-purple-border);
  box-shadow: 0 24px 60px rgba(79, 70, 229, 0.09), 0 2px 10px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s var(--butter-ease), box-shadow 0.4s var(--butter-ease);
}

.simple-hero-card:hover {
  box-shadow: 0 28px 70px rgba(79, 70, 229, 0.13), 0 4px 16px rgba(0, 0, 0, 0.04);
}

.simple-card-stage {
  position: relative;
  width: 100%;
  min-height: 440px;
  background: #0F172A;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.simple-stage-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.simple-stage-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
  pointer-events: none;
}

/* Clean Flow Layout Inside Stage */
.simple-flow-grid {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 768px) {
  .simple-flow-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.flow-step-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--squircle-card);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  color: #0F172A;
}

.flow-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.flow-step-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--butter-purple-primary);
}

.flow-step-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.flow-step-card p {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 12px;
}

.flow-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  background: #F1F4FD;
  padding: 5px 12px;
  border-radius: 8px;
}

/* Center Call Connector */
.flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.flow-pulse-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4F46E5, #818CF8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.6);
  animation: butterPulse 2.5s infinite;
}

.flow-speed-tag {
  font-size: 11px;
  font-weight: 700;
  color: #EEF2FF;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

/* Soundwave animation inside card */
.simple-soundwave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}

.simple-wave-bar {
  width: 3px;
  height: 8px;
  background: var(--butter-purple-vivid);
  border-radius: 2px;
  animation: waveBarAnim 1.2s infinite ease-in-out;
}

.simple-wave-bar:nth-child(2) { animation-delay: 0.15s; }
.simple-wave-bar:nth-child(3) { animation-delay: 0.3s; }
.simple-wave-bar:nth-child(4) { animation-delay: 0.1s; }
.simple-wave-bar:nth-child(5) { animation-delay: 0.25s; }

@keyframes waveBarAnim {
  0%, 100% { height: 6px; }
  50% { height: 22px; background: var(--butter-purple-primary); }
}

/* --------------------------------------------------------------------------
   3. HOW IT WORKS 3-STEP GRID
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: #ffffff;
  border-radius: var(--squircle-card);
  padding: 36px 30px;
  border: 1px solid var(--butter-purple-border);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--butter-ease), box-shadow 0.3s var(--butter-ease);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(79, 70, 229, 0.1);
  border-color: rgba(99, 102, 241, 0.35);
}

.step-number {
  font-size: 13px;
  font-weight: 800;
  color: var(--butter-purple-primary);
  background: var(--butter-bg-tint);
  width: fit-content;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

/* --------------------------------------------------------------------------
   4. CLEAN BENTO FEATURES GRID
   -------------------------------------------------------------------------- */
.features-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .features-bento-grid {
    grid-template-columns: 1fr;
  }
}

.feature-bento-card {
  background: #ffffff;
  border-radius: var(--squircle-card);
  padding: 36px 32px;
  border: 1px solid var(--butter-purple-border);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.05);
  transition: all 0.3s var(--butter-ease);
  position: relative;
  overflow: hidden;
}

.feature-bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 18px 45px rgba(79, 70, 229, 0.1);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--butter-bg-tint);
  color: var(--butter-purple-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-bento-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 10px;
}

.feature-bento-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 20px;
}

.feature-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  border: 1px solid rgba(99, 102, 241, 0.12);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--butter-purple-primary);
}

/* --------------------------------------------------------------------------
   5. INTEGRATIONS SECTION
   -------------------------------------------------------------------------- */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .integrations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.integration-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px;
  border: 1px solid var(--butter-purple-border);
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.integration-card:hover {
  transform: translateY(-2px);
  border-color: var(--butter-purple-primary);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.1);
}

.integration-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
}

.integration-card span {
  font-size: 12px;
  color: #64748B;
}

/* --------------------------------------------------------------------------
   6. CLEAN CTA BANNER
   -------------------------------------------------------------------------- */
.simple-cta-banner {
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 50%, #3730A3 100%);
  border-radius: var(--squircle-hero);
  padding: 64px 36px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(79, 70, 229, 0.25);
  margin-top: 60px;
  margin-bottom: 60px;
}

.simple-cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.simple-cta-banner p {
  font-size: 16px;
  color: #EEF2FF;
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.btn-white-pill {
  background: #ffffff;
  color: var(--butter-purple-primary);
  padding: 14px 32px;
  border-radius: var(--squircle-pill);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.25s var(--butter-ease);
  border: none;
  cursor: pointer;
}

.btn-white-pill:hover {
  transform: translateY(-2px);
  background: #F8F9FE;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

/* --------------------------------------------------------------------------
   7. QUALIFICATION NOTICE & BUDGET CRITERIA
   -------------------------------------------------------------------------- */
.qualification-notice {
  background: #EEF2FF;
  border: 1.5px solid rgba(79, 70, 229, 0.25);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

.notice-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1.2;
}

.notice-text {
  font-size: 13px;
  line-height: 1.55;
  color: #1E1B4B;
}

.notice-text strong {
  color: #4F46E5;
  font-weight: 700;
}

.budget-error-msg {
  display: none;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.45;
}

.budget-error-msg.visible {
  display: block;
}

/* --------------------------------------------------------------------------
   8. COOKIE CONSENT BANNER & PREFERENCE MODAL (LATEST GDPR / ePRIVACY / PECR)
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 920px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--squircle-card);
  border: 1.5px solid rgba(79, 70, 229, 0.22);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), 0 4px 16px rgba(79, 70, 229, 0.1);
  padding: 24px 28px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--butter-ease), opacity 0.45s var(--butter-ease);
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cookie-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--butter-bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.cookie-banner-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 6px;
}

.cookie-banner-text p {
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
}

.cookie-banner-text a {
  color: var(--butter-purple-primary);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

@media (max-width: 640px) {
  .cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 20px;
  }
  .cookie-banner-content {
    flex-direction: column;
    gap: 12px;
  }
  .cookie-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-actions button {
    width: 100%;
    justify-content: center;
  }
}

.btn-cookie-accept {
  background: var(--butter-purple-primary);
  color: #ffffff;
  border: 1px solid var(--butter-purple-primary);
  padding: 10px 22px;
  border-radius: var(--squircle-pill);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--butter-ease);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-cookie-accept:hover {
  background: var(--butter-purple-deep);
  transform: translateY(-1px);
}

.btn-cookie-reject {
  background: #ffffff;
  color: #334155;
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  padding: 10px 22px;
  border-radius: var(--squircle-pill);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--butter-ease);
}

.btn-cookie-reject:hover {
  background: var(--butter-bg-tint);
  color: var(--butter-purple-primary);
  border-color: var(--butter-purple-primary);
}

.btn-cookie-settings {
  background: transparent;
  color: #64748B;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 14px;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.btn-cookie-settings:hover {
  color: var(--butter-purple-primary);
}

/* Granular Cookie Modal */
.cookie-category-item {
  background: #F8F9FE;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  text-align: left;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cookie-category-header h5 {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
}

.cookie-badge-always {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  padding: 3px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.cookie-category-item p {
  font-size: 12px;
  line-height: 1.5;
  color: #64748B;
}

/* Accessible Toggle Switch */
.switch-label {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E1;
  transition: 0.3s;
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch-label input:checked + .switch-slider {
  background-color: var(--butter-purple-primary);
}

.switch-label input:checked + .switch-slider:before {
  transform: translateX(20px);
}

