/* Base layout spacing */
.hero {
  padding: 6rem 1rem;
  text-align: center;
}

.section {
  padding: 5rem 1rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 8rem 2rem;
  }
  .section {
    padding: 6rem 2rem;
  }
}

/* Container and typography balance */
.hero h1,
.section h1,
.section h2 {
  margin-bottom: 1.5rem;
}

.hero p.lead {
  max-width: 640px;
  margin: 0 auto 2rem auto;
  color: var(--bs-body-color);
}

/* Navbar */
.navbar-brand {
  font-weight: 700;
  color: var(--xilo-primary-dark);
}
.navbar-brand:hover {
  color: var(--xilo-primary);
}

/* Pricing grid refinements */
.pricing .card {
  border-radius: 1rem;
  border: 1px solid var(--bs-border-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.pricing .card-title {
  font-size: 1.125rem;
}

.pricing .card h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Hero CTA */
.btn-primary.btn-lg {
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
}

/* Feature icons */
.feature-icon {
  font-size: 2rem;
  line-height: 1;
}

/* Footer */
footer {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  text-align: center;
  font-size: 0.9rem;
  margin-top: auto;
}

/* Responsive tightening */
@media (max-width: 767.98px) {
  .pricing .card h2 {
    font-size: 1.5rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* Pricing yearly text tone and size */
.pricing .card h2 small,
.pricing .card h2 .yearly,
.card h2 .yearly,
h2 .yearly {
  display: block !important;
  font-size: 0.5em !important;
  font-weight: 300 !important;
  color: #6c757d !important;
  margin-top: 0.25rem !important;
  text-align: center !important;
  line-height: 1.2 !important;
}

/* Better pricing card internal alignment */
.pricing .card-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.pricing .card h2 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
}

.pricing .card h2 span {
  display: inline !important;
}

/* Enhanced brand visibility on homepage */
body.homepage .navbar-brand {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: var(--xilo-primary) !important;
  text-decoration: none !important;
  letter-spacing: -0.02em !important;
}

body.homepage .navbar-brand:hover {
  color: var(--xilo-primary-dark) !important;
  transform: scale(1.02);
  transition: all 0.2s ease;
}

/* Big brand header for homepage */
body.homepage .brand-header {
  margin-top: 2rem;
}

body.homepage .brand-name {
  font-size: 4rem !important;
  font-weight: 800 !important;
  color: var(--xilo-primary) !important;
  letter-spacing: -0.03em !important;
  text-shadow: 0 2px 4px rgba(27, 176, 165, 0.1);
}

body.homepage .brand-tagline {
  color: var(--xilo-primary) !important;
  font-weight: 600 !important;
  margin-bottom: 2rem !important;
}

/* Responsive brand sizing */
@media (max-width: 768px) {
  body.homepage .brand-name {
    font-size: 2.5rem !important;
  }
  
  body.homepage .brand-tagline {
    font-size: 1.5rem !important;
  }
}

/* Footer styling */
footer a:hover {
  color: var(--xilo-primary) !important;
  transition: color 0.2s ease;
}

footer h5, footer h6 {
  color: var(--xilo-primary-dark) !important;
}

/* Design Language Utilities */
.lift {
  transition: all 0.3s ease;
}

.lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* Proper border radius alignment */
.btn, .card, .badge, .alert, .form-control {
  border-radius: 0.75rem !important;
}

/* Button enhancements to match design language */
.btn-primary {
  background: var(--xilo-primary);
  border-color: var(--xilo-primary);
  font-weight: 600;
  padding: 0.875rem 2rem;
  box-shadow: 0 4px 12px rgba(27, 176, 165, 0.3);
}

.btn-primary:hover {
  background: #16998f;
  border-color: #11847c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 176, 165, 0.4);
}

.btn-outline-primary {
  color: var(--xilo-primary);
  border-color: rgba(27, 176, 165, 0.3);
  background: rgba(27, 176, 165, 0.1);
  font-weight: 600;
}

.btn-outline-primary:hover {
  background: var(--xilo-primary);
  border-color: var(--xilo-primary);
  color: white;
}

/* Coral/highlight button for special actions */
.btn-highlight {
  background: var(--xilo-highlight);
  color: white;
  border: none;
  font-weight: 600;
  padding: 0.875rem 2rem;
  box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.btn-highlight:hover {
  background: #E6743A;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 140, 66, 0.4);
}

/* Section spacing alignment */
.section {
  padding: 4rem 0;
}

@media (max-width: 768px) {
  .section {
    padding: 2rem 0;
  }
}

/* Reduce gap between monthly and yearly prices */
.pricing .card h2 {
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

/* Make yearly line blend better */
.pricing .card h2 .yearly {
  opacity: 0.85;
}

.badge.bg-primary-subtle {
  background-color: rgba(27, 176, 165, 0.1);
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
}

/* Xilo-aligned badge colors */
.badge.bg-primary-subtle {
  background-color: rgba(27, 176, 165, 0.1) !important;
  color: var(--xilo-primary) !important;
}

.badge.bg-warning-subtle {
  background-color: rgba(255, 140, 66, 0.1) !important;
  color: #D17A42 !important;
}