/* Fabryka Treści — landing styles
 * Brand brain: Zasoby/brand/fabryka-tresci/brain/3-visual.md
 * Paleta: burgund #6B1E2E + złoto #D4A574 + kremowy #F5EBD9 + antracyt #2C2825
 */

:root {
  --burgundy: #6B1E2E;
  --burgundy-dark: #511626;
  --burgundy-light: #8a3a4a;
  --gold: #D4A574;
  --gold-dark: #b88a5d;
  --cream: #F5EBD9;
  --cream-dark: #EBDCC0;
  --anthracite: #2C2825;
  --anthracite-light: #5A524C;
  --green: #3D5A3E;
  --red-rust: #A0432F;
  --white: #FFFFFF;

  --font-heading: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(44, 40, 37, 0.08);
  --shadow-md: 0 4px 12px rgba(44, 40, 37, 0.12);
  --shadow-lg: 0 12px 32px rgba(44, 40, 37, 0.18);
}

/* Reset + base */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--anthracite);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--anthracite);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.01em; margin-bottom: 1.5rem; }
h3 { font-size: 1.375rem; font-weight: 600; }
h4 { font-size: 1.0625rem; font-weight: 600; }

p { color: var(--anthracite-light); }

a { color: var(--burgundy); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--burgundy-dark); }

strong { color: var(--anthracite); font-weight: 600; }

/* Container */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--burgundy-dark);
  color: var(--cream);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.btn-outline:hover {
  background: var(--burgundy);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--burgundy);
  padding: 14px 12px;
}
.btn-ghost:hover {
  color: var(--burgundy-dark);
}

.btn-small { padding: 9px 18px; font-size: 0.8125rem; }
.btn-big { padding: 18px 40px; font-size: 1rem; }
.btn-full { display: block; width: 100%; text-align: center; }

/* Top nav */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 235, 217, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-dark);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--anthracite);
}
.brand-mark { width: 32px; height: 32px; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--anthracite);
}
.nav-links a:not(.btn):hover { color: var(--burgundy); }

@media (max-width: 760px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn):not(.btn-primary) { display: none; }
}

/* Hero */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
}
.badge {
  display: inline-block;
  background: var(--burgundy);
  color: var(--cream);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--burgundy); }
.hero-sub {
  font-size: 1.1875rem;
  line-height: 1.5;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--anthracite);
}
.hero-sub-2 {
  font-size: 1.0625rem;
  margin-bottom: 32px;
  color: var(--anthracite-light);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--anthracite-light);
}
.hero-trust span { font-weight: 500; }
.hero-logo {
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 12px 32px rgba(107, 30, 46, 0.15));
}

/* Problem section */
.problem { padding: 100px 0; background: var(--white); }
.problem h2 .muted { color: var(--anthracite-light); font-weight: 600; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 56px;
  margin-bottom: 56px;
}
.problem-card {
  background: var(--cream);
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--burgundy);
}
.problem-num {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--burgundy);
  line-height: 1;
}
.problem-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--anthracite-light);
  margin-top: 6px;
  margin-bottom: 16px;
}
.problem-card p { font-size: 0.9375rem; line-height: 1.55; }
.problem-conclusion {
  background: var(--burgundy);
  color: var(--cream);
  padding: 32px 36px;
  border-radius: var(--radius-md);
  text-align: center;
}
.problem-conclusion p { color: var(--cream); font-size: 1.125rem; margin-bottom: 8px; }
.problem-conclusion p.strong {
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 12px;
  color: var(--gold);
  font-family: var(--font-heading);
}

/* How it works */
.how-it-works { padding: 100px 0; background: var(--cream); }
.section-lead {
  font-size: 1.125rem;
  margin-bottom: 56px;
  color: var(--anthracite-light);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}
.step {
  position: relative;
  padding: 36px 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.step-num {
  position: absolute;
  top: -20px;
  left: 28px;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--anthracite);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}
.step h3 { margin-top: 8px; margin-bottom: 12px; line-height: 1.3; }
.step h3 .muted {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--anthracite-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.step p { font-size: 0.9375rem; }

.result-bar {
  background: var(--anthracite);
  color: var(--cream);
  padding: 24px 32px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  line-height: 1.6;
}
.result-bar strong { color: var(--gold); font-weight: 700; }

/* Pricing */
.pricing { padding: 100px 0; background: var(--white); }
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
@media (max-width: 920px) {
  .tiers { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}
.tier {
  background: var(--cream);
  padding: 36px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-dark);
  display: flex;
  flex-direction: column;
}
.tier-featured {
  background: var(--anthracite);
  color: var(--cream);
  border: 1px solid var(--burgundy);
  position: relative;
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 920px) {
  .tier-featured { transform: scale(1); }
}
.tier-featured h3, .tier-featured .tier-features li, .tier-featured .price, .tier-featured .tier-tagline {
  color: var(--cream);
}
.tier-featured .price { color: var(--gold); }
.tier-featured strong { color: var(--white); }
.tier-featured code { background: rgba(212, 165, 116, 0.15); color: var(--gold); }
.tier-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--anthracite);
  padding: 6px 16px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.tier-head { margin-bottom: 24px; }
.tier h3 { margin-bottom: 12px; }
.tier-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.tier-price .price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--burgundy);
  line-height: 1;
}
.tier-price .price-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--anthracite-light);
}
.tier-tagline {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--anthracite-light);
}
.tier-features {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}
.tier-features li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 0.9375rem;
  color: var(--anthracite);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.tier-features li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 10px;
  color: var(--burgundy);
  font-weight: 700;
}
.tier-featured .tier-features li::before { color: var(--gold); }
.tier-features li:last-child { border-bottom: none; }
.tier-features li.bonus {
  background: rgba(212, 165, 116, 0.1);
  padding-left: 28px;
  padding-right: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  border-bottom: none;
  margin-top: 8px;
}
.tier-features li.bonus::before { content: "★"; color: var(--gold); }
.tier-features code {
  background: rgba(107, 30, 46, 0.08);
  color: var(--burgundy);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: ui-monospace, 'SF Mono', monospace;
}

.pricing-note {
  background: var(--cream);
  padding: 24px 32px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold);
}
.pricing-note p { margin-bottom: 8px; font-size: 0.9375rem; }
.pricing-note p:last-child { margin-bottom: 0; }

/* Diagnose */
.diagnose {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
  text-align: center;
}
.diagnose-lead {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--burgundy);
  margin: 12px 0 24px;
}
.diagnose p { font-size: 1.0625rem; line-height: 1.6; margin-bottom: 32px; max-width: 580px; margin-left: auto; margin-right: auto; }
.diagnose-alt {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--anthracite-light);
}

/* Founder */
.founder { padding: 100px 0; background: var(--white); }
.founder-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) {
  .founder-grid { grid-template-columns: 1fr; gap: 40px; }
}
.founder-text p { margin-bottom: 18px; font-size: 1.0625rem; line-height: 1.7; }
.founder-signature {
  margin-top: 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--anthracite);
}
.founder-signature .muted {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--anthracite-light);
}
.founder-stats {
  display: grid;
  gap: 20px;
}
.stat {
  background: var(--cream);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold);
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--burgundy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--anthracite-light);
  font-weight: 500;
}

/* FAQ */
.faq { padding: 100px 0; background: var(--cream); }
.faq h2 { text-align: center; margin-bottom: 48px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  padding: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--anthracite);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--burgundy);
  margin-left: 16px;
  transition: transform 0.2s;
}
.faq-item[open] summary { color: var(--burgundy); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 28px 24px;
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Final CTA */
.final-cta {
  padding: 100px 0;
  background: var(--burgundy);
  color: var(--cream);
  text-align: center;
}
.final-cta h2 { color: var(--cream); margin-bottom: 12px; }
.final-cta > .container > p {
  color: var(--gold);
  font-size: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 36px;
}
.final-cta .btn-primary {
  background: var(--gold);
  color: var(--anthracite);
}
.final-cta .btn-primary:hover {
  background: var(--cream);
  color: var(--burgundy);
}
.cta-fine {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: rgba(245, 235, 217, 0.7);
}

/* Footer */
.footer {
  background: var(--anthracite);
  color: var(--cream);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand p { color: rgba(245, 235, 217, 0.7); margin-bottom: 14px; font-size: 0.9375rem; }
.footer-logo { width: 80px; height: auto; margin-bottom: 16px; opacity: 0.9; }
.footer-contact a { color: var(--gold); font-weight: 500; }
.footer-col h4 {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(245, 235, 217, 0.85); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(245, 235, 217, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: rgba(245, 235, 217, 0.6);
}
.footer-bottom a { color: var(--gold); }

/* Print-friendly fallback for screenshots */
@media print {
  .top-nav, .final-cta .btn { display: none; }
}

/* === DOC PAGES (Impressum, Polityka, Regulamin, Dziekuje) === */
.doc-wrap {
  max-width: 820px;
  margin: 60px auto;
  padding: 0 24px;
}
.doc-card {
  background: var(--white);
  padding: 56px 64px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) {
  .doc-card { padding: 36px 28px; }
  .doc-wrap { margin: 24px auto; }
}
.doc-card .back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--burgundy);
}
.doc-card .back-link:hover { color: var(--burgundy-dark); }
.doc-card h1 {
  font-size: 2.25rem;
  margin-bottom: 8px;
}
.doc-card .meta {
  color: var(--anthracite-light);
  font-size: 0.875rem;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cream-dark);
}
.doc-card h2 {
  font-size: 1.375rem;
  margin-top: 36px;
  margin-bottom: 16px;
  color: var(--burgundy);
}
.doc-card h3 {
  font-size: 1.125rem;
  margin-top: 24px;
  margin-bottom: 12px;
}
.doc-card p, .doc-card li {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.doc-card ul, .doc-card ol {
  margin-left: 24px;
  margin-bottom: 18px;
}
.doc-card li { margin-bottom: 8px; }
.doc-card strong { color: var(--anthracite); }

/* Dziekuje / thank-you page tiles */
.thanks-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.thanks-tile {
  background: var(--cream);
  padding: 24px 22px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold);
}
.thanks-tile h4 {
  margin-bottom: 8px;
  color: var(--burgundy);
}
.thanks-tile p { font-size: 0.875rem; margin-bottom: 12px; }
.thanks-tile a {
  font-weight: 600;
  font-size: 0.875rem;
}
