/* ============================================
   gieldapoludzku.pl – Główny arkusz stylów
   © 2024 Giełda po ludzku | Justyna Batycka
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --green:       #2ecc71;
  --green-dark:  #1e8449;
  --green-light: #d5f5e3;
  --red:         #e74c3c;
  --text:        #1a1a2e;
  --text-muted:  #6b7280;
  --bg:          #ffffff;
  --bg-light:    #f9fafb;
  --border:      #e5e7eb;
  --shadow:      0 4px 24px rgba(0,0,0,0.07);
  --radius:      14px;
  --max-width:   1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Sora', sans-serif; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p  { line-height: 1.7; }
a  { color: inherit; }

/* ── LAYOUT HELPERS ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 48px; }
.section    { padding: 72px 0; }
.section--gray { background: var(--bg-light); }
.section--border { border-top: 1px solid var(--border); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.accent-line { width: 40px; height: 3px; background: var(--green); border-radius: 2px; margin: 0 auto; }
.accent-line--left { margin: 12px 0 28px; }

/* ── NAV ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.logo-icon {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 22px;
}
.logo-icon span { display: block; width: 4px; border-radius: 2px 2px 0 0; }
.logo-icon span:nth-child(1) { height: 10px; background: var(--red); }
.logo-icon span:nth-child(2) { height: 16px; background: var(--green); }
.logo-icon span:nth-child(3) { height: 8px;  background: var(--red); }
.logo-icon span:nth-child(4) { height: 20px; background: var(--green); }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); border-color: var(--green); }

/* hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; margin: 5px 0; transition: 0.3s; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(46,204,113,0.3); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--green); color: var(--green-dark); }

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 48px 88px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 20px;
}
.hero-badge::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 420px;
}

.checklist { list-style: none; margin-bottom: 36px; display: flex; flex-direction: column; gap: 11px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 500; }

.check-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-icon svg { width: 11px; height: 11px; }

.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; }
.price { font-family: 'Sora', sans-serif; font-size: 2.4rem; font-weight: 800; }
.price-label { color: var(--text-muted); font-size: 0.85rem; }

.secure-note { display: flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--text-muted); margin-top: 12px; }

/* ── COVER IMAGE (hero) ── */
.book-wrap { display: flex; justify-content: center; align-items: center; }

.cover-img-wrap {
  position: relative;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.18));
  transition: transform 0.4s;
}
.cover-img-wrap:hover { transform: translateY(-6px) scale(1.01); }

.cover-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.feature-icon {
  width: 46px; height: 46px;
  background: var(--green-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--green-dark); }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

/* ── SAMPLES ── */
.samples-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.sample-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.sample-card:hover { box-shadow: var(--shadow); }

.sample-preview {
  background: #f4f6f8;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sample-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); padding: 14px 18px 4px; }
.sample-card p { font-size: 0.82rem; color: var(--text-muted); padding: 4px 18px 18px; line-height: 1.5; }

/* ── FOR WHO ── */
.forwho {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.forwho-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.forwho-list li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; font-weight: 500; }
.forwho-img { display: flex; justify-content: center; }
.illo { max-width: 320px; width: 100%; }

.forwho-photo {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 20px;
  display: block;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.12));
  transition: transform 0.3s;
}
.forwho-photo:hover { transform: translateY(-4px); }

/* ── TRUST ── */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.trust-item { display: flex; gap: 18px; align-items: flex-start; }
.trust-icon-wrap {
  width: 50px; height: 50px;
  background: var(--green-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-icon-wrap svg { width: 24px; height: 24px; color: var(--green-dark); }
.trust-item h4 { font-family: 'Sora', sans-serif; font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.trust-item p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ── WARNING BOX ── */
.warning-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 40px;
}
.warning-box svg { width: 22px; height: 22px; color: #d97706; flex-shrink: 0; margin-top: 1px; }
.warning-box p { font-size: 0.8rem; color: #92400e; line-height: 1.5; }
.warning-box strong { font-weight: 600; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background 0.15s;
}
.faq-question:hover { background: var(--bg-light); }

.faq-icon { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.25s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* ── PAGE HERO (podstrony) ── */
.page-hero {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 52px;
  text-align: center;
}
.page-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 16px;
}
.page-hero .badge::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--green); display:inline-block; }
.page-hero p { color: var(--text-muted); font-size: 1rem; margin-top: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── REGULAMIN / POLITYKA ── */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 48px;
}
.legal-content h2 { font-size: 1.2rem; margin: 36px 0 10px; color: var(--text); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 8px; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin-bottom: 12px; }
.legal-content strong { color: var(--text); }
.legal-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 32px; }

/* ── SUKCES / BŁĄD ── */
.result-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: 64px 24px;
}
.result-icon { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.result-icon--success { background: var(--green-light); }
.result-icon--error { background: #fee2e2; }
.result-icon svg { width: 36px; height: 36px; }
.result-page h1 { font-size: 1.8rem; margin-bottom: 12px; }
.result-page p { color: var(--text-muted); max-width: 480px; margin: 0 auto 28px; }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { text-decoration: none; font-size: 0.82rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }
.footer-disclaimer { width: 100%; font-size: 0.72rem; color: #9ca3af; text-align: center; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 8px; }

/* ── RESPONSIVE ── */
  @media (max-width: 960px) {
    .container { padding: 0 24px; }
    .nav { padding: 16px 24px; }
    .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 8px 0; box-shadow: var(--shadow); }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 24px; border-bottom: none; }
    .nav-toggle { display: block; }
    .hero { grid-template-columns: 1fr; padding: 48px 24px 56px; gap: 40px; }
    .cover-img-wrap { order: -1; }
    .cover-img { max-width: 340px; margin: 0 auto; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .samples-grid { grid-template-columns: 1fr; }
    .forwho { grid-template-columns: 1fr; gap: 32px; }
    .forwho-photo { max-width: 340px; margin: 0 auto; }
    .trust-grid { grid-template-columns: 1fr; gap: 24px; }
    .section { padding: 48px 0; }
    .footer { padding: 24px; flex-direction: column; align-items: flex-start; }
    .legal-content { padding: 40px 24px; }
  }

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}
