/**
 * ProductComposer - Additional Sections CSS
 * Styles for Comparison, Features, Extensions, Workflow, Pricing, FAQ, CTA, and Footer
 */

/* ===================================================
   SHARED SECTION HEADINGS & BADGES
   =================================================== */

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  position: relative;
  z-index: 10;
}

.section-alt {
  background: linear-gradient(180deg, rgba(17, 22, 34, 0.4) 0%, rgba(10, 13, 20, 0.8) 100%);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.section-desc {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===================================================
   SECTION 2: COMPARISON (Vorher & nachher)
   =================================================== */

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

.comparison-card {
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* WooCommerce standard card (neutral, no negative styling) */
.comparison-card.card-problem {
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--border-glass-hover);
}

.comparison-card.card-problem .card-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* ProductComposer Card (Solution) */
.comparison-card.card-solution {
  background: rgba(24, 18, 40, 0.65);
  border: 1px solid rgba(217, 70, 239, 0.4);
  box-shadow: 0 15px 45px -10px rgba(217, 70, 239, 0.25);
  position: relative;
  overflow: hidden;
}

.comparison-card.card-solution::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.25), transparent 70%);
  pointer-events: none;
}

.comparison-card.card-solution .card-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.comparison-card h3 {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.96rem;
  line-height: 1.5;
}

.comparison-list li .icon-neutral {
  color: var(--text-muted);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.2;
}

.comparison-list li .icon-check {
  color: #10b981;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.2;
}

/* ===================================================
   SECTION 3: BENTO FEATURES GRID
   =================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 70, 239, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), 0 0 25px rgba(121, 82, 179, 0.15);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(121, 82, 179, 0.25), rgba(217, 70, 239, 0.25));
  border: 1px solid rgba(217, 70, 239, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e879f9;
}

.bento-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.bento-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.bento-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.bento-card .feature-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(56, 189, 248, 0.25);
  letter-spacing: 0.04em;
}

/* ===================================================
   SECTION 4: EXTENSIONS (Erweiterungen)
   =================================================== */

.addons-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.addon-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.addon-filter-btn.active, .addon-filter-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary-light);
  box-shadow: 0 4px 15px rgba(121, 82, 179, 0.35);
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

.addon-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
}

.addon-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.addon-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.addon-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.addon-badge-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.addon-badge-status.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.addon-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.addon-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.addon-category {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
}

.addon-learn-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #a78bfa;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--transition-fast);
}

.addon-learn-link:hover {
  color: #e879f9;
}

/* ===================================================
   SECTION 5: HOW TO START / WORKFLOW
   =================================================== */

.workflow-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.step-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  backdrop-filter: blur(12px);
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-magenta));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(121, 82, 179, 0.4);
}

.step-card h3 {
  font-size: 1.25rem;
  color: #ffffff;
}

.step-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================================
   SECTION 6: PRICING & LICENSES
   =================================================== */

.pricing-toggle-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.pricing-period-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.pricing-period-label.active {
  color: #ffffff;
}

.pricing-switch {
  border: 0;
  padding: 0;
  flex-shrink: 0;
  width: 52px;
  height: 28px;
  background: #334155;
  border-radius: var(--radius-pill);
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pricing-switch:focus-visible {
  outline: 2px solid var(--accent-magenta);
  outline-offset: 3px;
}

.pricing-switch.annual {
  background: var(--primary);
}

.pricing-switch-handle {
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-switch.annual .pricing-switch-handle {
  transform: translateX(24px);
}

.discount-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  position: relative;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured {
  background: rgba(24, 18, 40, 0.75);
  border: 2px solid var(--accent-magenta);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(217, 70, 239, 0.25);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary), #a21caf);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(217, 70, 239, 0.4);
}

.pricing-tier-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

.pricing-tier-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 1rem 0;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
  line-height: 1;
}

.price-period {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.pricing-features li svg {
  width: 17px;
  height: 17px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ===================================================
   SECTION 7: FAQ ACCORDION
   =================================================== */

.faq-container {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.faq-question {
  list-style: none;
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-question:focus-visible {
  outline: 2px solid var(--accent-magenta);
  outline-offset: -2px;
}

.faq-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.25s ease;
  color: var(--accent-magenta);
}

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

.faq-item[open] {
  border-color: rgba(217, 70, 239, 0.4);
}

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

.faq-answer {
  padding: 0 1.5rem 1.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===================================================
   SECTION 8: FINAL CTA BANNER
   =================================================== */

.cta-banner-card {
  background: linear-gradient(135deg, rgba(30, 20, 50, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(217, 70, 239, 0.4);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(217, 70, 239, 0.2);
}

.cta-banner-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.25), transparent 70%);
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-banner-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.cta-banner-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================================
   SECTION 9: FOOTER
   =================================================== */

.site-footer {
  background: #07090f;
  border-top: 1px solid var(--border-glass);
  padding: 4.5rem 0 2.5rem;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 320px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===================================================
   RESPONSIVE BREAKPOINTS FOR ALL SECTIONS
   =================================================== */

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card.span-2 {
    grid-column: span 2;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .pricing-card.featured {
    transform: none;
  }
  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.span-2 {
    grid-column: span 1;
  }
  .workflow-steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Footnotes below the extension cards (limits and requirements) */
.addon-footnotes {
  max-width: 900px;
  margin: 1.75rem auto 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.addon-footnotes p + p {
  margin-top: 0.4rem;
}

/* Narrow phones: pricing cards fit into 320 px */
@media (max-width: 480px) {
  .pricing-card {
    padding: 1.5rem;
  }

  .pricing-card .btn {
    white-space: normal;
    text-align: center;
  }
}

/* Package cards: hint instead of the shop button, notes below the packages */
.pricing-unavailable {
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--border-glass-hover);
  border-radius: var(--radius-md, 12px);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

.pricing-notes {
  max-width: 900px;
  margin: 2rem auto 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}

.pricing-notes p {
  margin: 0 0 0.5rem;
}

.pricing-notes .pricing-b2b {
  color: var(--text-main);
  font-weight: 600;
}

/* What the licence includes – and what the customer brings */
.license-box {
  max-width: 1000px;
  margin: 2.5rem auto 0;
  padding: 2rem;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.license-box-title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  text-align: center;
}

.license-box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.license-col h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.license-col .check-list li {
  font-size: 0.9rem;
}

.license-footnote {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* "So starten Sie": four steps and a notice for shops switching from other plugins */
.workflow-steps-grid.steps-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.start-notice {
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-left-width: 4px;
  border-radius: var(--radius-md, 12px);
  background: rgba(245, 158, 11, 0.08);
}

.start-notice h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.start-notice p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .workflow-steps-grid.steps-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .workflow-steps-grid.steps-4,
  .license-box-grid {
    grid-template-columns: 1fr;
  }

  .license-box {
    padding: 1.25rem;
  }
}
