/* ══════════════════════════════════════════════════
   NEO-BRUTALISM LANDING PAGE — style.css
   Sekcje: Base · Buttons · Navbar · Hero · Benefits
           Testimonials · Pricing · Signup · Footer
           Chat Widget
   ══════════════════════════════════════════════════ */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --yellow: #FFE44D;
  --pink: #FF6B6B;
  --mint: #6BFFB8;
  --purple: #C8B3FF;
  --blue: #4DDFFF;
  --orange: #FFB347;
  --bg: #FFFBF0;
  --border: 3px solid var(--black);
  --shadow: 6px 6px 0px var(--black);
  --shadow-lg: 10px 10px 0px var(--black);
  --radius: 0px;
  --font-sans: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  border: var(--border);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  user-select: none;
  text-align: center;
}

.btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translate(0, 0);
  box-shadow: none;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 4px 4px 0 var(--black);
}

.btn-outline {
  background: var(--white);
  color: var(--black);
  box-shadow: 4px 4px 0 var(--black);
}

.btn-nav {
  background: var(--black);
  color: var(--yellow);
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn-nav:hover {
  background: var(--yellow);
  color: var(--black);
}

.btn-full { width: 100%; display: block; }

.btn-large {
  padding: 18px 32px;
  font-size: 1.1rem;
}

/* ══════════════════════════════════════
   SECTION SHARED
══════════════════════════════════════ */
section {
  padding: 100px 5%;
}

.section-tag {
  display: inline-block;
  background: var(--black);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 60px;
  max-width: 680px;
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5%;
  background: var(--bg);
  border-bottom: var(--border);
  gap: 20px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
}

.nav-logo span {
  background: var(--yellow);
  padding: 0 4px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--yellow);
  transition: width 0.2s ease;
}

.nav-links a:hover::after { width: 100%; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  min-height: 90vh;
  padding: 80px 5% 100px;
  background: var(--yellow);
  border-bottom: var(--border);
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 32px;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  width: fit-content;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05;
  max-width: 800px;
}

.hero-title .highlight {
  background: var(--black);
  color: var(--yellow);
  padding: 0 8px;
  display: inline-block;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 560px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 8px;
}

.stat-box {
  border: var(--border);
  padding: 20px 28px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-right: -3px;
  margin-bottom: -3px;
}

.stat-box strong {
  font-size: 1.8rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.stat-box span {
  font-size: 0.8rem;
  opacity: 0.7;
}

.hero-img-wrapper {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
}

.ebook-mockup {
  width: 240px;
  height: 320px;
  border: var(--border);
  box-shadow: var(--shadow-lg);
  transform: rotate(4deg);
  transition: transform 0.3s ease;
}

.ebook-mockup:hover {
  transform: rotate(0deg) scale(1.04);
}

.ebook-cover {
  width: 100%;
  height: 100%;
  background: var(--black);
  color: var(--yellow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 24px;
  gap: 12px;
}

.ebook-cover-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  opacity: 0.6;
}

.ebook-cover h2 {
  font-size: 2rem;
  line-height: 1.1;
}

.ebook-cover-sub {
  font-size: 0.85rem;
  border-top: 2px solid var(--yellow);
  padding-top: 10px;
  opacity: 0.8;
}

/* ══════════════════════════════════════
   BENEFITS
══════════════════════════════════════ */
.benefits {
  background: var(--white);
  border-bottom: var(--border);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
}

.benefit-card {
  border: var(--border);
  padding: 36px 32px;
  background: var(--white);
  margin: -3px -3px 0 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: default;
}

.benefit-card:hover {
  background: var(--accent, #FFE44D);
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  position: relative;
}

.benefit-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.benefit-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.benefit-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.8;
}

/* ══════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════ */
.testimonials {
  background: var(--mint);
  border-bottom: var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  border: var(--border);
  background: var(--white);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
}

.testimonial-text::before { content: '"'; font-size: 2rem; line-height: 0; vertical-align: -0.5rem; margin-right: 4px; }
.testimonial-text::after  { content: '"'; font-size: 2rem; line-height: 0; vertical-align: -0.5rem; margin-left: 4px; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-author strong { display: block; font-weight: 700; }
.testimonial-author span { font-size: 0.85rem; opacity: 0.65; }

/* ══════════════════════════════════════
   PRICING
══════════════════════════════════════ */
.pricing {
  background: var(--bg);
  border-bottom: var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
}

.pricing-card {
  border: var(--border);
  padding: 40px 32px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: -3px -3px 0 0;
  position: relative;
}

.pricing-card--featured {
  background: var(--black);
  color: var(--white);
  transform: scale(1.02);
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border: var(--border);
  white-space: nowrap;
}

.pricing-header h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.pricing-desc {
  font-size: 0.9rem;
  opacity: 0.65;
}

.pricing-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-old {
  font-size: 1rem;
  text-decoration: line-through;
  opacity: 0.5;
}

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

.price-period {
  font-size: 0.85rem;
  opacity: 0.6;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-features li {
  font-size: 0.95rem;
  line-height: 1.4;
}

.pricing-card--featured .btn-outline {
  background: var(--yellow);
  color: var(--black);
}

.pricing-guarantee {
  text-align: center;
  margin-top: 48px;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.75;
}

/* ══════════════════════════════════════
   SIGN-UP FORM
══════════════════════════════════════ */
.signup {
  background: var(--purple);
  border-bottom: var(--border);
}

.signup-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.signup-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 480px;
}

.signup-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-perks li {
  font-size: 1rem;
  font-weight: 500;
}

.signup-form-wrapper {
  border: var(--border);
  background: var(--white);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select {
  padding: 14px 16px;
  border: var(--border);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  box-shadow: 4px 4px 0 var(--black);
}

.form-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--black);
}

.form-checkbox label {
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.5;
  cursor: pointer;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  min-height: 200px;
}

.success-icon { font-size: 3.5rem; }

.form-success h3 { font-size: 1.5rem; }

.form-success p { opacity: 0.7; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 40px 5%;
  border-top: var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-logo span {
  background: var(--yellow);
  color: var(--black);
  padding: 0 4px;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.55;
}

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

.footer-links a {
  font-size: 0.85rem;
  opacity: 0.65;
  transition: opacity 0.15s;
}

.footer-links a:hover { opacity: 1; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-img-wrapper {
    position: static;
    transform: none;
    display: flex;
    justify-content: flex-start;
    margin-top: -10px;
  }

  .ebook-mockup { width: 180px; height: 240px; }

  .signup-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 700px) {
  section { padding: 70px 5%; }

  .navbar { padding: 14px 5%; }

  .nav-links { display: none; }

  .hero { padding: 60px 5% 80px; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .stat-box { flex: 1 1 calc(50% - 3px); }

  .pricing-card--featured { transform: none; }

  .pricing-grid { gap: 16px; }
  .pricing-card { margin: 0; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════
   CHECKOUT CTA
══════════════════════════════════════ */
.checkout-cta {
  background: var(--black);
  color: var(--white);
  border-bottom: var(--border);
  padding: 100px 5%;
}

.checkout-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.checkout-cta .section-tag {
  background: var(--yellow);
  color: var(--black);
}

.checkout-cta .section-title { color: var(--white); }

.cta-highlight {
  background: var(--yellow);
  color: var(--black);
  padding: 0 8px;
  display: inline-block;
}

.checkout-price-box {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.price-old-big {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  text-decoration: line-through;
  opacity: 0.4;
}

.price-big {
  font-family: var(--font-mono);
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
}

.price-tax {
  font-size: 0.78rem;
  opacity: 0.45;
  width: 100%;
  margin-top: -8px;
}

.checkout-methods {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.method-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid rgba(255,255,255,.3);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--white);
}

.method-badge.blik {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(255,228,77,.08);
}

/* Action column */
.checkout-action {
  border: var(--border);
  border-color: rgba(255,255,255,.25);
  padding: 40px 36px;
  background: rgba(255,255,255,.04);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkout-cta .btn-primary {
  background: var(--yellow);
  color: var(--black);
  font-size: 1.15rem;
  padding: 20px 28px;
  box-shadow: 5px 5px 0 var(--yellow);
  border-color: var(--yellow);
  text-align: center;
}

.checkout-cta .btn-primary:hover {
  box-shadow: 8px 8px 0 rgba(255,228,77,.5);
}

.checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.checkout-note {
  font-size: 0.82rem;
  opacity: 0.5;
  text-align: center;
  line-height: 1.5;
}

.checkout-includes {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
}

.checkout-includes p {
  font-size: 0.85rem;
  margin-bottom: 10px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-family: var(--font-mono);
}

.checkout-includes li {
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 6px;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .checkout-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .checkout-action { padding: 28px 24px; }
  .price-big { font-size: 2.8rem; }
}

/* ══════════════════════════════════════
   CHAT WIDGET
══════════════════════════════════════ */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.chat-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  color: var(--yellow);
  border: var(--border);
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  user-select: none;
}

.chat-toggle:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
}

.chat-toggle:active {
  transform: none;
  box-shadow: none;
}

.chat-toggle-icon { font-size: 1.3rem; line-height: 1; }

.chat-window {
  display: none;
  flex-direction: column;
  width: 360px;
  height: 500px;
  border: var(--border);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.chat-window.is-open { display: flex; }

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--black);
  color: var(--white);
  border-bottom: var(--border);
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--yellow);
  flex-shrink: 0;
}

.chat-header-info strong { display: block; font-size: 0.9rem; }
.chat-header-info span   { font-size: 0.72rem; opacity: 0.55; font-family: var(--font-mono); }

.chat-close {
  background: none;
  border: 2px solid rgba(255,255,255,0.25);
  color: var(--white);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

.chat-close:hover { background: rgba(255,255,255,0.15); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
  scrollbar-width: thin;
}

.chat-msg { display: flex; }

.chat-msg--bot  { justify-content: flex-start; }
.chat-msg--user { justify-content: flex-end; }

.chat-bubble {
  max-width: 82%;
  padding: 11px 15px;
  border: var(--border);
  font-size: 0.88rem;
  line-height: 1.6;
}

.chat-msg--bot  .chat-bubble { background: var(--white); box-shadow: 3px 3px 0 var(--black); }
.chat-msg--user .chat-bubble { background: var(--yellow); box-shadow: 3px 3px 0 var(--black); }

.chat-bubble--typing {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 14px 18px;
  min-height: 44px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--black);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-7px); }
}

.chat-input-area {
  display: flex;
  border-top: var(--border);
  flex-shrink: 0;
}

.chat-input-area input {
  flex: 1;
  padding: 13px 14px;
  border: none;
  border-right: var(--border);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  background: var(--white);
  outline: none;
  min-width: 0;
}

.chat-input-area input:disabled { opacity: 0.5; }

.chat-send {
  width: 52px;
  background: var(--yellow);
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-send:hover   { background: var(--black); color: var(--yellow); }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 500px) {
  .chat-widget { bottom: 16px; right: 16px; }
  .chat-window { width: calc(100vw - 32px); height: 420px; }
  .chat-toggle-label { display: none; }
  .chat-toggle { padding: 14px; }
}
