/* AfterMyBills Marketing Website Stylesheet */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --color-brand-blue: #2563eb;
  --color-brand-blue-hover: #1d4ed8;
  --color-brand-light-blue: #60a5fa;
  --color-bg-dark: #090d16;
  --color-bg-surface-dark: #0f172a;
  --color-bg-card-dark: #1e293b;
  --color-bg-light: #ffffff;
  --color-bg-subtle: #f8fafc;
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --color-text-light: #ffffff;
  --color-text-light-secondary: #94a3b8;
  --color-border-subtle: #e2e8f0;
  --color-border-dark: rgba(255, 255, 255, 0.12);
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  --shadow-glow: 0 0 50px rgba(37, 99, 235, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background-color: var(--color-bg-dark);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.5;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 860px;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.025em;
  color: inherit;
}

p {
  color: var(--color-text-secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-dark);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: block;
}

.wordmark-after {
  color: #ffffff;
}

.wordmark-mybills {
  color: var(--color-brand-light-blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--color-text-light-secondary);
  font-size: 15px;
  font-weight: 600;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--color-brand-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid var(--color-border-dark);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 17px;
  border-radius: 16px;
}

/* Mobile Menu Button */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 8px;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  background: radial-gradient(circle at 50% -20%, #1e3a8a 0%, #090d16 65%);
  overflow: hidden;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand-light-blue);
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  line-height: 1.1;
  color: #ffffff;
  max-width: 900px;
  margin: 0 auto 20px;
}

.hero-title span {
  background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--color-text-light-secondary);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-showcase {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 100px -20px rgba(0, 0, 0, 0.8), var(--shadow-glow);
}

.hero-showcase img {
  width: 100%;
  display: block;
  border-radius: 18px;
}

/* Light Section */
.section-light {
  background: var(--color-bg-light);
  color: var(--color-text-primary);
  padding: 100px 0;
}

.section-subtle {
  background: var(--color-bg-subtle);
  color: var(--color-text-primary);
  padding: 100px 0;
}

.section-dark {
  background: var(--color-bg-surface-dark);
  color: #ffffff;
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-blue);
  margin-bottom: 12px;
}

.section-tag-light {
  color: var(--color-brand-light-blue);
}

.section-title {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.section-dark .section-subtitle {
  color: var(--color-text-light-secondary);
}

/* Value Props Grid */
.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.prop-card {
  background: #ffffff;
  border: 1px solid var(--color-border-subtle);
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.prop-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
}

.icon-blue { background: #eff6ff; color: var(--color-brand-blue); }
.icon-amber { background: #fffbeb; color: #d97706; }
.icon-emerald { background: #ecfdf5; color: #059669; }

.prop-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.prop-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* Feature Spotlight Rows (Alternating) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  margin-bottom: 100px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-content h3 {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 16px;
}

.feature-content p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.feature-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.check-icon {
  color: var(--color-brand-blue);
  font-weight: bold;
  font-size: 18px;
  line-height: 1.2;
}

.feature-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-subtle);
  background: #ffffff;
}

.feature-media img {
  width: 100%;
  display: block;
}

/* Promotional Cards Carousel / Grid */
.promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.promo-card-item {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: var(--color-bg-surface-dark);
}

.promo-card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.promo-card-item img {
  width: 100%;
  display: block;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border-subtle);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: var(--color-brand-blue);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 22px 28px;
  background: transparent;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  background: #eff6ff;
  color: var(--color-brand-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 28px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* Category Filters */
.category-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--color-border-subtle);
  background: #ffffff;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--color-brand-blue);
  color: #ffffff;
  border-color: var(--color-brand-blue);
}

/* CTA Banner */
.cta-banner {
  background: radial-gradient(circle at 50% 50%, #1e40af 0%, #0f172a 100%);
  color: #ffffff;
  text-align: center;
  padding: 80px 24px;
  border-radius: 32px;
  margin: 60px auto 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.cta-banner h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 18px;
  color: #bfdbfe;
  max-width: 620px;
  margin: 0 auto 32px;
}

/* Footer */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light-secondary);
  padding: 60px 0 40px;
  border-top: 1px solid var(--color-border-dark);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .props-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-row.reverse {
    direction: ltr;
  }
  .promo-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 38px;
  }
  .hero-subtitle {
    font-size: 17px;
  }
  .section-title {
    font-size: 30px;
  }
  .feature-content h3 {
    font-size: 26px;
  }
  .promo-cards-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--color-bg-surface-dark);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--color-border-dark);
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .footer-top, .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 50px 0 40px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .nav-actions .btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  .nav-brand-text {
    font-size: 18px;
  }
  .faq-filter-btn {
    font-size: 13px;
    padding: 6px 14px;
  }
}
