/* Billora marketing site: layout, motion, and components */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marketing-reveal,
  .marketing-hero-visual {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Header */
.marketing-header {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.marketing-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.marketing-nav-link {
  position: relative;
  color: #6b6b6b;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.marketing-nav-link:hover,
.marketing-nav-link:focus-visible {
  color: #111111;
  text-decoration: none;
}

.marketing-nav-link.is-active {
  color: #111111;
}

.marketing-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 999px;
  background: #6b5b95;
}

/* Mobile menu */
.marketing-mobile-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.2s ease;
}

.marketing-mobile-panel.is-open {
  max-height: 24rem;
  opacity: 1;
}

/* Buttons */
.marketing-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.5rem;
  border-radius: 0.625rem;
  background: #6b5b95;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(107, 91, 149, 0.18);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.marketing-btn-primary:hover,
.marketing-btn-primary:focus-visible {
  background: #5a4d80;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.marketing-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.5rem;
  border-radius: 0.625rem;
  background: #ffffff;
  color: #111111;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #eaeae6;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.marketing-btn-secondary:hover,
.marketing-btn-secondary:focus-visible {
  background: #f3f3f0;
  border-color: #d8d8d4;
  color: #111111;
  text-decoration: none;
}

.marketing-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 0.625rem;
  background: transparent;
  color: #6b6b6b;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.marketing-btn-ghost:hover,
.marketing-btn-ghost:focus-visible {
  color: #111111;
  background: rgba(0, 0, 0, 0.03);
  text-decoration: none;
}

/* Section rhythm */
.marketing-section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .marketing-section {
    padding: 6.5rem 0;
  }
}

.marketing-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b5b95;
}

.marketing-section-label::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: rgba(107, 91, 149, 0.35);
}

.marketing-section-label--center {
  justify-content: center;
}

.marketing-section-label--center::before {
  display: none;
}

/* Hero */
.marketing-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fafaf8 100%);
}

.marketing-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107, 91, 149, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 91, 149, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 20%, transparent 100%);
  pointer-events: none;
}

.marketing-hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(42rem, 70vw);
  height: min(42rem, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 91, 149, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes marketing-float-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.marketing-hero-visual {
  animation: marketing-float-in 0.6s ease-out both;
}

.marketing-product-card {
  border: 1px solid #eaeae6;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.06);
}

.marketing-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #eaeae6;
  background: #fafaf8;
}

/* Stat strip */
.marketing-stat {
  text-align: left;
}

.marketing-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111111;
  line-height: 1.1;
}

.marketing-stat-label {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: #6b6b6b;
}

/* Feature cards */
.marketing-feature-card {
  height: 100%;
  padding: 1.75rem;
  border-radius: 1rem;
  border: 1px solid #eaeae6;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.marketing-feature-card:hover {
  border-color: rgba(107, 91, 149, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.marketing-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: rgba(107, 91, 149, 0.08);
  color: #6b5b95;
}

/* Before / after panel */
.marketing-contrast-panel {
  border-radius: 1.25rem;
  border: 1px solid #eaeae6;
  overflow: hidden;
}

.marketing-contrast-panel--before {
  background: #ffffff;
}

.marketing-contrast-panel--after {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.marketing-pain-item,
.marketing-gain-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(234, 234, 230, 0.8);
}

.marketing-contrast-panel--after .marketing-gain-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.marketing-pain-item:last-child,
.marketing-gain-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.marketing-pain-item:first-child,
.marketing-gain-item:first-child {
  padding-top: 0;
}

/* Step cards */
.marketing-step-card {
  position: relative;
  height: 100%;
  padding: 1.75rem;
  border-radius: 1rem;
  border: 1px solid #eaeae6;
  background: #ffffff;
}

.marketing-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.25rem;
  border-radius: 0.5rem;
  background: #111111;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
}

/* Benefit list */
.marketing-benefit {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid #eaeae6;
  background: #ffffff;
}

/* Pricing */
.marketing-pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  border-radius: 1rem;
  border: 1px solid #eaeae6;
  background: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.marketing-pricing-card--featured {
  border-color: #6b5b95;
  box-shadow: 0 8px 32px rgba(107, 91, 149, 0.12);
}

/* FAQ */
.marketing-faq {
  border-radius: 0.875rem;
  border: 1px solid #eaeae6;
  background: #ffffff;
  overflow: hidden;
}

.marketing-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: #111111;
}

.marketing-faq summary::-webkit-details-marker {
  display: none;
}

.marketing-faq[open] summary {
  border-bottom: 1px solid #eaeae6;
}

.marketing-faq-body {
  padding: 1rem 1.5rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #6b6b6b;
}

.marketing-faq-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.marketing-faq[open] .marketing-faq-chevron {
  transform: rotate(180deg);
}

/* Demo form */
.marketing-form-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  border: 1px solid #eaeae6;
  background: #ffffff;
  color: #111111;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.marketing-form-field::placeholder {
  color: #9e9e9e;
}

.marketing-form-field:focus {
  outline: none;
  border-color: rgba(107, 91, 149, 0.45);
  box-shadow: 0 0 0 3px rgba(107, 91, 149, 0.1);
}

.marketing-form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111111;
}

/* Final CTA */
.marketing-final-cta {
  border-radius: 1.25rem;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* Status pills */
.marketing-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.marketing-status--error {
  background: rgba(196, 93, 79, 0.1);
  color: #a94438;
}

.marketing-status--warning {
  background: rgba(184, 134, 11, 0.12);
  color: #8a6914;
}

.marketing-status--success {
  background: rgba(74, 124, 89, 0.12);
  color: #3d6649;
}

.marketing-status-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: currentColor;
}
