/* SS AI Custom Styles */

/* Mobile safety: prevent horizontal scroll */
html, body {
  overflow-x: hidden;
}

/* Brand tokens */
:root {
  --brand-navy: #001f3f;
  --brand-navy-light: #1e3a8a;
  --brand-accent: #3b82f6;
  --brand-success: #10b981;
}

/* Primary CTA button */
.btn-brand {
  background-color: var(--brand-navy);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.05s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: inline-block;
  text-decoration: none;
}
.btn-brand:hover { background-color: var(--brand-navy-light); }
.btn-brand:active { transform: translateY(1px); }

/* Headings color */
h1, h2, h3, h4 { color: var(--brand-navy); }

/* Links */
a { color: var(--brand-accent); }
a:hover { text-decoration: underline; }

/* Sticky navbar */
.navbar-sticky {
  position: sticky; top: 0; z-index: 50; background-color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Success banner */
.success-banner { background-color: var(--brand-success); color: #fff; font-weight: 600; }

/* Responsive hero grid */
@media (min-width: 768px) {
  .hero-content {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center;
  }
}

/* Mobile nav */
.mobile-menu { display: none; }
.mobile-menu.active { display: block; }
@media (max-width: 767px) {
  .mobile-menu-toggle { display: block; }
  .desktop-nav { display: none; }
}
@media (min-width: 768px) {
  .mobile-menu-toggle { display: none; }
  .desktop-nav { display: flex; }
}

/* Cards */
.feature-card, .pricing-card, .testimonial-card {
  background: #fff; border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 2rem; text-align: center;
}
.feature-card { transition: transform 0.2s ease; }
.feature-card:hover { transform: translateY(-2px); }

.pricing-card { position: relative; }
.pricing-card.featured { border: 2px solid var(--brand-navy); transform: scale(1.05); }

.testimonial-card { position: relative; }

/* Step circle */
.step-number {
  background-color: var(--brand-navy); color: #fff; width: 3rem; height: 3rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; margin: 0 auto 1rem;
}

/* Final CTA */
.final-cta { background-color: var(--brand-navy); color: #fff; }

/* Footer */
.footer-dark { background-color: var(--brand-navy); color: #fff; }
.footer-dark a { color: #cbd5e1; }
.footer-dark a:hover { color: #fff; }

/* Animated gradient background for hero */
.animated-gradient {
  background: linear-gradient(-45deg, #f8fafc, #eef2ff, #e0f2fe, #f1f5f9);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

/* Floating CTA button */
.floating-cta {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  background: var(--brand-navy); color: #fff; border-radius: 9999px;
  padding: 0.75rem 1.25rem; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.floating-cta:hover { background: var(--brand-navy-light); text-decoration: none; }

/* Visually hidden utility for accessibility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Ensure navbar/footer logos render consistently */
.navbar-sticky img[alt="SS AI Logo"],
.footer-dark img[alt="SS AI Logo"] {
  display: block;
  height: 32px;
  width: auto;
  object-fit: contain;
}

/* Hide the floating CTA on small screens to avoid overlap */
@media (max-width: 767px) {
  .floating-cta { display: none; }
}

/* EchoRate 3-step flow connector */
.echorate-steps {
  position: relative;
}

@media (min-width: 768px) {
  .echorate-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background: linear-gradient(to right, #e5e7eb 0%, #3b82f6 50%, #e5e7eb 100%);
    z-index: 0;
  }
}

.echorate-step-card {
  position: relative;
  z-index: 1;
}

/* Demo suggestion chips */
.tips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tip:hover {
  background-color: #e5e7eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tip:active {
  transform: translateY(0);
}

.tip .bubble {
  display: none;
}

@media (min-width: 768px) {
  .tip:hover .bubble {
    display: block;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: #1f2937;
    color: white;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
  }
  
  .tip:hover .bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1f2937;
  }
}