/* ============================================
   STUDIO E-BOOKA — DODATKI v3.4
   Value Stack + Founder Story (Before/After)
   Dopasowane do design systemu z style.css
============================================ */

/* ============================================
   VALUE STACK (Hero + Final CTA)
============================================ */
.value-stack {
  background: rgba(255, 165, 0, 0.05);
  border: 1px solid rgba(255, 165, 0, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0 var(--space-md);
}

.value-stack-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.value-stack-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-sm);
}

.value-stack-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(255, 165, 0, 0.15);
  font-size: 0.95rem;
  gap: var(--space-sm);
}

.value-stack-list li:last-child {
  border-bottom: none;
}

.vs-name {
  color: var(--text-light);
  font-weight: 500;
  flex: 1;
}

.vs-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--text-light-muted);
  font-weight: 400;
  margin-left: 0.4rem;
}

.vs-price {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-light-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.value-stack-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.6rem;
  border-top: 2px solid rgba(255, 165, 0, 0.3);
  margin-top: 0.2rem;
}

.vs-total-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.vs-total-old {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text-light-secondary);
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

/* Wariant dark (Final CTA — już jest na ciemnym tle) */
.value-stack-dark {
  background: rgba(255, 165, 0, 0.08);
  border-color: rgba(255, 165, 0, 0.35);
  max-width: 540px;
  margin: var(--space-lg) auto var(--space-md);
}

/* ============================================
   FOUNDER STORY — Before/After
============================================ */
.founder-story {
  background: var(--bg-light-section);
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-header-tight {
  margin-bottom: var(--space-xl);
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.ba-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  border: 1px solid var(--border-light);
}

.ba-before {
  background: #fafaf8;
  border: 1px solid #e5e5e0;
  opacity: 0.95;
}

.ba-after {
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 8px 30px rgba(255, 165, 0, 0.12);
  position: relative;
}

.ba-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
}

.ba-before .ba-label {
  background: #f4f4f0;
  color: var(--text-dark-muted);
  border: 1px solid #e5e5e0;
}

.ba-label-after {
  background: var(--accent);
  color: #1a1100;
}

.ba-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.ba-before .ba-title {
  color: var(--text-dark-secondary);
}

.ba-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ba-list li {
  display: flex;
  gap: 0.7rem;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-dark-secondary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.ba-list li:last-child {
  border-bottom: none;
}

.ba-icon-x,
.ba-icon-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 1px;
}

.ba-icon-x {
  background: #f0e6e0;
  color: #8b6552;
}

.ba-icon-check {
  background: var(--accent);
  color: #1a1100;
}

.founder-conclusion {
  text-align: center;
  max-width: 700px;
  margin: var(--space-xl) auto 0;
  padding: var(--space-lg);
  background: #fff;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
}

.founder-conclusion p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-dark-secondary);
  margin-bottom: var(--space-sm);
}

.founder-conclusion p:last-child {
  margin-bottom: 0;
}

.founder-signature {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-dark);
  font-weight: 500;
}

/* ============================================
   BONUS VALUE TAGS (w sekcji bonusów)
============================================ */
.bonus-value {
  display: inline-block;
  background: rgba(26, 17, 0, 0.85);
  color: #ffd078;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-left: 0.4rem;
  vertical-align: middle;
  font-family: var(--font-mono);
  border: 1px solid rgba(255, 165, 0, 0.4);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 900px) {
  .before-after-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .ba-card {
    padding: var(--space-lg);
  }

  .ba-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  .value-stack {
    padding: var(--space-sm) var(--space-md);
  }

  .value-stack-list li {
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .vs-name {
    flex-basis: 65%;
  }

  .vs-tag {
    display: block;
    margin-left: 0;
    margin-top: 0.1rem;
  }

  .ba-card {
    padding: var(--space-md);
  }

  .ba-title {
    font-size: 1.1rem;
  }

  .ba-list li {
    font-size: 0.9rem;
  }

  .bonus-value {
    display: block;
    margin-left: 0;
    margin-top: 0.3rem;
    width: fit-content;
  }
}

/* ============================================
   HERO BULLETS FIX (mobile wrap)
============================================ */
.hero-bullets li {
  align-items: flex-start !important;
  line-height: 1.5;
}

.hero-bullets li .check-icon {
  margin-top: 3px;
}

@media (max-width: 600px) {
  .hero-bullets li {
    font-size: 14px;
  }
}

/* ============================================
   COOKIE CONSENT BANNER
============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  background: #0a0a0a;
  border-top: 2px solid var(--accent);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  padding: var(--space-md) 0;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0s linear 0.35s;
}

.cookie-banner-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0s linear 0s;
}

.cookie-banner[hidden] {
  display: block !important;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-lg);
  align-items: center;
}

.cookie-banner-content {
  color: var(--text-light);
}

.cookie-banner-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.cookie-banner-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-light-secondary);
  margin-bottom: 0.5rem;
}

.cookie-banner-links {
  font-size: 0.85rem;
  color: var(--text-light-muted);
  margin: 0;
}

.cookie-banner-links a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-links a:hover {
  color: var(--accent-bright);
}

.cookie-sep {
  margin: 0 0.4rem;
  color: var(--text-light-muted);
}

.cookie-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.cookie-link-btn:hover {
  color: var(--accent-bright);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Przyciski cookie */
.cookie-btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.cookie-btn-primary {
  background: var(--accent);
  color: #1a1100;
  border: 2px solid var(--accent);
}

.cookie-btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

.cookie-btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid #444;
}

.cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #666;
}

/* ============================================
   COOKIE MODAL (ustawienia szczegółowe)
============================================ */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.cookie-modal-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.cookie-modal[hidden] {
  display: flex !important;
}

.cookie-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.cookie-modal-content {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.cookie-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-dark-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal-close:hover {
  background: var(--bg-light-section);
  color: var(--text-dark);
}

.cookie-modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  padding-right: 2rem;
}

.cookie-modal-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-dark-secondary);
  margin-bottom: var(--space-lg);
}

.cookie-category {
  background: var(--bg-light-section);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  border: 1px solid var(--border-light);
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.cookie-category-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.cookie-category-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-dark-secondary);
  margin: 0;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

.cookie-toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 28px;
  transition: var(--transition-fast);
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle-input:checked + .cookie-toggle-slider {
  background: var(--accent);
}

.cookie-toggle-input:checked + .cookie-toggle-slider::before {
  transform: translateX(22px);
}

.cookie-toggle-locked {
  background: rgba(255, 165, 0, 0.12);
  border: 1px solid rgba(255, 165, 0, 0.3);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  width: auto;
  height: auto;
  cursor: not-allowed;
  flex-shrink: 0;
}

.cookie-toggle-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-deep);
  white-space: nowrap;
}

.cookie-modal-footer {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

.cookie-modal-footer .cookie-btn-secondary {
  color: var(--text-dark);
  border-color: var(--border-light);
}

.cookie-modal-footer .cookie-btn-secondary:hover {
  background: var(--bg-light-section);
  border-color: var(--text-dark-muted);
}

.cookie-modal-fineprint {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-dark-muted);
  margin-top: var(--space-md);
  text-align: center;
}

.cookie-modal-fineprint a {
  color: var(--accent-deep);
  text-decoration: underline;
}

/* Footer cookie button */
.footer-cookie-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-cookie-btn:hover {
  color: var(--accent);
}

/* ============================================
   RESPONSIVE — COOKIE BANNER MOBILE
============================================ */
@media (max-width: 768px) {
  .cookie-banner {
    padding: var(--space-sm) 0;
  }

  .cookie-banner-inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: 0 16px;
  }

  .cookie-banner-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cookie-btn {
    width: 100%;
    padding: 0.8rem 1rem;
  }

  .cookie-banner-title {
    font-size: 1rem;
  }

  .cookie-banner-desc {
    font-size: 0.85rem;
  }

  .cookie-modal-content {
    padding: var(--space-lg);
  }

  .cookie-modal-title {
    font-size: 1.25rem;
  }

  .cookie-modal-footer {
    flex-direction: column-reverse;
  }

  .cookie-modal-footer .cookie-btn {
    width: 100%;
  }

  .cookie-category-header {
    flex-wrap: wrap;
  }
}
