/* 
  Źródło kolorów: client/src/styles/_variables.scss 
*/
:root {
  --bg-main: #090d16;
  --bg-card: #131b2e;
  --bg-card-hover: #19233c;
  
  --border-subtle: #1e293b;
  --border-card: #22304d;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #090d16;

  --gold-300: #fde68a;
  --gold-400: #facc15;
  --gold-500: #e5c07b;
  --gold-600: #d4af37;
  --gold-700: #b45309;
  --gold-800: #78350f;
  
  --gold-gradient: linear-gradient(135deg, #fcebc2 0%, #e5c07b 50%, #c99833 100%);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 25px rgba(229, 192, 123, 0.18);

  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--gold-500);
  color: var(--bg-main);
  padding: 8px;
  z-index: 100;
  transition: top var(--transition-normal);
}
a.skip-link:focus {
  top: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  padding: 24px 0;
  margin-bottom: 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--gold-500);
  font-weight: 700;
}
h2 {
  font-size: 2.25rem;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.5rem;
  margin-top: 32px;
}

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 24px;
}

a {
  color: var(--gold-500);
  text-decoration: none;
  transition: color var(--transition-normal);
}
a:hover {
  color: var(--gold-400);
}
a:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

.btn {
  display: inline-block;
  background-color: var(--border-card);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  border: 1px solid transparent;
}
.btn:hover {
  background-color: var(--border-subtle);
  color: var(--text-primary);
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-card);
  color: var(--text-primary);
}
.btn-outline:hover {
  background-color: var(--bg-card);
}

.btn-primary {
  background-color: var(--gold-500);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background-color: var(--gold-400);
  color: var(--text-inverse);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Badge */
.badge {
  display: inline-block;
  background: var(--gold-300);
  color: var(--gold-800);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 24px;
}

/* Hero Section */
.hero-section {
  padding: 64px 0 80px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.hero-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}
.hero-content {
  flex: 1;
  text-align: center;
  max-width: 600px;
}
.hero-content h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero-note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-visual {
  flex: 1;
  position: relative;
  width: 100%;
  max-width: 800px;
}
.mockup-desktop {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-card);
}
.mockup-desktop img {
  width: 100%;
  height: auto;
  display: block;
}
.mockup-mobile {
  display: none;
}

/* Responsiveness */
@media (min-width: 992px) {
  .hero-container {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .hero-content {
    text-align: left;
    max-width: 50%;
  }
  .hero-actions {
    align-items: flex-start;
  }
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .hero-visual {
    position: relative;
    max-width: 50%;
  }
  /* Mobile mockup overlay on desktop */
  .mockup-mobile {
    display: block;
    position: absolute;
    bottom: -24px;
    left: -32px;
    width: 160px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--bg-main);
    z-index: 2;
  }
  .mockup-mobile img {
    width: 100%;
    height: auto;
    display: block;
  }
}

.features-section {
  padding: 80px 0;
}
.feature-row {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}
.feature-row:last-child {
  margin-bottom: 0;
}
.feature-text {
  flex: 1;
}
.feature-text h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  color: var(--gold-500);
}
.feature-text p {
  font-size: 1.125rem;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.feature-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-500);
  font-weight: 700;
  font-size: 1.125rem;
}
.feature-visual {
  flex: 1;
  width: 100%;
}
.feature-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-card);
  display: block;
}

@media (min-width: 992px) {
  .feature-row {
    flex-direction: row;
    gap: 80px;
  }
  .feature-row.reverse {
    flex-direction: row-reverse;
  }
}

.btn-block {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 24px;
}

/* SECTION HEADERS */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}
.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* PRICING SECTION */
.pricing-section {
  padding: 100px 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }
}
.pricing-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-normal);
}
.pricing-card:hover {
  transform: translateY(-8px);
}
.pricing-card.premium {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-gold);
}
.premium-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--gold-500);
  color: var(--text-inverse);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
}
.plan-name {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}
.pricing-card.premium .plan-name {
  color: var(--gold-500);
}
.plan-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.plan-price span {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 400;
}
.plan-desc {
  color: var(--text-secondary);
  margin-bottom: 32px;
  min-height: 48px;
}
.pricing-card .feature-list {
  flex: 1;
  margin-top: 0;
}
/* Ceny okresów planu (data-price-grosze sprawdza server/test/landing.test.js) */
.plan-periods {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 6px;
}
.plan-periods li {
  display: flex;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.plan-periods li span {
  color: var(--text-primary);
  font-weight: 600;
}
/* Informacje przed zakupem (docs/legal/consumer-law.md §6) */
.pricing-terms {
  max-width: 800px;
  margin: 48px auto 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.pricing-terms ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 6px;
}
.pricing-terms a {
  color: var(--gold-500);
}

/* FAQ SECTION */
.faq-section {
  padding: 60px 0 100px;
}
.faq-container {
  max-width: 800px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  padding: 24px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none; /* Hide default marker in standard browsers */
  position: relative;
  transition: color var(--transition-normal);
}
.faq-item summary::-webkit-details-marker {
  display: none; /* Hide in WebKit */
}
.faq-item summary:hover {
  color: var(--gold-500);
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold-500);
  transition: transform var(--transition-normal);
}
.faq-item[open] summary::after {
  content: "−"; /* minus symbol */
}
.faq-answer {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.cta-section {
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
}
.cta-container {
  max-width: 800px;
}
.cta-container h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}
.cta-container p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: var(--text-secondary);
}
.cta-actions {
  display: flex;
  justify-content: center;
}

footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--gold-500);
}

/* Styl treści prawnych (regulamin, prywatnosc) */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content p, .legal-content li {
  color: var(--text-secondary);
  font-size: 1rem;
}
.legal-content h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
}
.legal-content h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-top: 2rem;
}
.legal-content strong {
  color: var(--text-primary);
}
.legal-content a {
  color: var(--gold-500);
  overflow-wrap: anywhere;
}
/* Wartości tymczasowe na dev (docs/todo-before-prod.md §12) */
.legal-content mark {
  background: var(--gold-500);
  color: var(--text-inverse);
  padding: 0 4px;
  border-radius: 3px;
}
.legal-note {
  border-left: 3px solid var(--gold-500);
  padding-left: 12px;
}
/* Tabela polityki prywatności: przewijana poziomo w swoim pudełku, nie cała strona */
.legal-table {
  overflow-x: auto;
}
.legal-content table {
  border-collapse: collapse;
  min-width: 600px;
  font-size: 0.9rem;
}
.legal-content th, .legal-content td {
  border: 1px solid var(--border-card);
  padding: 8px;
  text-align: left;
  vertical-align: top;
  color: var(--text-secondary);
}
.legal-content th {
  color: var(--text-primary);
}

/* Sticky Header & Anchor Scroll */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for sticky header */
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header-nav a:not(.btn) {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-nav a:not(.btn):hover {
  color: var(--gold-400);
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: none;
}

/* Agitation Section */
.agitation-section {
  padding: 4rem 1rem;
  background-color: rgba(30, 41, 59, 0.3);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.agitation-section h2 {
  font-size: 2rem;
  color: #f87171; /* Delikatna czerwień/koral sugerująca problem */
  margin-bottom: 1rem;
}

/* PWA Section */
.pwa-section {
  padding: 5rem 1rem;
  background-color: var(--bg-color);
}

@media (max-width: 768px) {
  .header-nav a:not(.btn) {
    display: none;
  }
}

/* Poradniki pod frazy z wyszukiwarki (docs/marketing/strategia.md M5): układ stron prawnych, nagłówek <h1> z tematem */
.guide-content h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 24px;
}
.guide-content h2 {
  margin-top: 2.5rem;
}
.guide-content ul {
  padding-left: 1.25rem;
}
.guide-content li {
  margin-bottom: 8px;
}
.guide-cta {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 32px 0;
}
.guide-cta p {
  margin-bottom: 16px;
}
/* `.legal-content a` (złoty tekst) jest mocniejsze niż `.btn-primary` — bez tego przycisk miał złoty napis na złotym tle */
.guide-content a.btn-primary,
.guide-content a.btn-primary:hover {
  color: var(--text-inverse);
}
