/* Root index.html - bento glass features (site palette) */
#features .features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, minmax(280px, 280px));
  gap: 20px;
  align-items: stretch;
}

#features .bento-setup {
  grid-column: 1 / span 2;
  grid-row: 1;
}

#features .bento-call {
  grid-column: 3;
  grid-row: 1;
}

#features .bento-lead {
  grid-column: 1;
  grid-row: 2;
}

#features .bento-book {
  grid-column: 2 / span 2;
  grid-row: 2;
}

#features .bento-teams {
  grid-column: 1;
  grid-row: 3;
}

#features .bento-stats {
  grid-column: 2 / span 2;
  grid-row: 3;
}

/* Premium thick-glass feature cards — shared across all regional pages */
#features .features-bento .feature-card--glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: rgba(210, 215, 228, 0.58);
  backdrop-filter: blur(32px) saturate(200%) brightness(1.04);
  -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(1.04);
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: 16px;
  padding: 0;
  height: 100%;
  box-shadow:
    inset  0    2px  0   rgba(255, 255, 255, 0.90),
    inset  2px  0    0   rgba(255, 255, 255, 0.65),
    inset  0   -1px  0   rgba(0,   0,   0,   0.07),
    inset -1px  0    0   rgba(0,   0,   0,   0.04),
    0   4px  12px rgba(0, 0, 0, 0.09),
    0  14px  36px rgba(0, 0, 0, 0.10),
    0  28px  56px rgba(0, 0, 0, 0.07);
  transition: transform  0.30s cubic-bezier(0.34, 1.2, 0.64, 1),
              box-shadow 0.30s ease,
              background 0.30s ease;
}

/* Top-left specular highlight — the signature glass shine */
#features .features-bento .feature-card--glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.60) 0%,
    rgba(255, 255, 255, 0.20) 30%,
    rgba(255, 255, 255, 0.00) 58%
  );
  pointer-events: none;
  z-index: -1;
}

@media (hover: hover) {
  #features .features-bento .feature-card--glass:hover {
    background: rgba(225, 229, 242, 0.74);
    border-color: rgba(255, 255, 255, 0.88);
    box-shadow:
      inset  0    2px  0   rgba(255, 255, 255, 0.95),
      inset  2px  0    0   rgba(255, 255, 255, 0.75),
      inset  0   -1px  0   rgba(0,   0,   0,   0.08),
      inset -1px  0    0   rgba(0,   0,   0,   0.05),
      0   6px  18px rgba(0, 0, 0, 0.11),
      0  20px  48px rgba(0, 0, 0, 0.12),
      0  36px  72px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
  }
}

#features .feature-card--glass .feature-icon {
  background: rgba(42, 101, 246, 0.08);
}

#features .feature-card--glass .feature-icon svg {
  stroke: var(--bg-blue);
}

#features .feature-card--glass h3 {
  color: var(--text-dark);
}

#features .bento-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 18px 20px;
  gap: 10px;
  overflow: hidden;
}

#features .bento-card-head {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

#features .bento-card-head p {
  color: var(--text-body);
  margin-bottom: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#features .bento-card-head h3 {
  margin-bottom: 6px;
}

#features .bento-card-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Shared inner panels - Recivo light blues */
#features .feature-visual {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  padding: 10px;
  border-radius: 10px;
  background: rgba(238, 244, 255, 0.65);
  border: 1px solid #c7d8ff;
  box-sizing: border-box;
  overflow: hidden;
}

/* 24/7 call + bot */
#features .feature-visual-call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#features .call-mock-left {
  flex: 1;
  min-width: 0;
}

#features .call-mock-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 8px;
}

#features .call-mock-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}

#features .call-mock-wave span {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2a65f6, #1e52e8);
  animation: featureWave 1.2s ease-in-out infinite;
}

#features .call-mock-wave span:nth-child(1) { height: 10px; animation-delay: 0s; }
#features .call-mock-wave span:nth-child(2) { height: 18px; animation-delay: 0.1s; }
#features .call-mock-wave span:nth-child(3) { height: 24px; animation-delay: 0.2s; }
#features .call-mock-wave span:nth-child(4) { height: 16px; animation-delay: 0.3s; }
#features .call-mock-wave span:nth-child(5) { height: 12px; animation-delay: 0.4s; }

@keyframes featureWave {
  0%, 100% { transform: scaleY(0.65); opacity: 0.65; }
  50% { transform: scaleY(1); opacity: 1; }
}

#features .call-mock-bot {
  width: 48px;
  max-width: 48px;
  max-height: 56px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(42, 101, 246, 0.2));
}

/* Lead qualification chat */
#features .feature-visual-chat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
}

#features .chat-bubble {
  max-width: 92%;
  padding: 6px 9px;
  border-radius: 10px;
  font-size: 0.62rem;
  line-height: 1.3;
}

#features .chat-bubble-ai {
  align-self: flex-start;
  background: rgba(42, 101, 246, 0.12);
  color: var(--text-dark);
  border: 1px solid #c7d8ff;
}

#features .chat-bubble-user {
  align-self: flex-end;
  background: var(--white);
  color: var(--text-body);
  border: 1px solid var(--border);
}

/* Appointment calendar */
#features .feature-visual-cal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  overflow: hidden;
}

#features .cal-mock-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

#features .cal-mock-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  font-size: 0.5rem;
  color: var(--text-muted);
  text-align: center;
}

#features .cal-mock-grid span {
  padding: 2px 0;
  border-radius: 4px;
}

#features .cal-mock-grid .cal-day-active {
  background: var(--bg-blue);
  color: var(--white);
  font-weight: 700;
}

#features .cal-slots-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: 6px;
}

#features .cal-mock-slots {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#features .cal-slot {
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  color: var(--text-body);
  background: var(--white);
  border: 1px solid var(--border);
  cursor: default;
}

#features .cal-slot-active {
  background: var(--bg-blue);
  color: var(--white);
  border-color: var(--bg-blue);
}

/* Invite teams - teammate names */
#features .feature-visual-teams {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

#features .teams-mock-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-body);
  margin: 0;
}

#features .teams-name-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  width: 100%;
  max-width: 100%;
}

#features .teams-name {
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-body);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  flex: 0 1 auto;
}

#features .teams-name.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--bg-blue) 0%, var(--bg-blue-dark) 100%);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(42, 101, 246, 0.28);
}

/* Instant setup stepper */
#features .feature-visual-setup {
  padding: 10px 8px;
}

#features .setup-stepper {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

#features .setup-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  text-align: center;
}

#features .setup-step .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--bg-blue);
  background: #fff;
  border: 2px solid #c7d8ff;
  box-sizing: border-box;
  flex-shrink: 0;
}

#features .setup-step.is-active .step-num {
  color: #fff;
  background: var(--bg-blue);
  border-color: var(--bg-blue);
  box-shadow: 0 2px 8px rgba(42, 101, 246, 0.3);
}

#features .setup-step .step-label {
  display: block;
  font-size: 0.56rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-body);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

#features .setup-step.is-active .step-label {
  color: var(--text-dark);
  font-weight: 700;
}

/* Conversion - compact */
#features .feature-visual-stats {
  padding: 10px;
}

#features .stats-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

#features .stats-compact-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  min-width: 0;
}

#features .stats-compact-item--hi {
  border-color: #c7d8ff;
  background: rgba(42, 101, 246, 0.06);
}

#features .stats-compact-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(42, 101, 246, 0.1);
}

#features .stats-compact-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--bg-blue);
}

#features .stats-compact-item strong {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

#features .stats-compact-item span {
  display: block;
  font-size: 0.54rem;
  color: var(--text-body);
  line-height: 1.3;
}

#features .stats-compact-foot {
  grid-column: 1 / -1;
  margin: 0;
  padding: 7px 10px;
  font-size: 0.58rem;
  text-align: center;
  color: var(--text-body);
  background: #fff;
  border: 1px solid #c7d8ff;
  border-radius: 8px;
}

#features .stats-compact-foot strong {
  color: var(--text-blue);
  font-weight: 700;
}

@media (max-width: 1024px) {
  #features .features-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: minmax(260px, auto);
  }

  #features .bento-setup,
  #features .bento-call,
  #features .bento-lead,
  #features .bento-book,
  #features .bento-teams,
  #features .bento-stats {
    grid-column: auto;
    grid-row: auto;
  }

  #features .bento-setup {
    grid-column: 1 / -1;
  }

  #features .bento-book,
  #features .bento-stats {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  #features .features-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(240px, auto);
  }

  #features .feature-visual-cal {
    grid-template-columns: 1fr;
  }


  #features .call-mock-bot {
    width: 44px;
    max-height: 52px;
  }

  #features .stats-compact {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  #features .call-mock-wave span {
    animation: none;
  }
}
