/* === Variables === */
:root {
  --bg-light: #f8f9fa;
  --bg-card: #ffffff;
  --text-dark: #1a1a2e;
  --text-muted: #6b7280;
  --accent-orange: #f97316;
  --accent-orange-hover: #ea580c;
  --accent-green: #166534;
  --accent-green-light: #15803d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.1);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: 52px; /* space for fixed ad banner */
}

/* === Ad banner (reklám plakát) === */
.ad-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(220, 38, 38, 0.4);
  animation: slideDown 0.5s ease-out;
}
.ad-banner-text { display: block; }

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* === Disclaimer (figyelmeztető) === */
.disclaimer-section {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 20px;
}
.disclaimer-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
  animation: fadeInUp 0.6s ease-out;
}
.disclaimer-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #f59e0b;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.disclaimer-text {
  margin: 0;
  color: #92400e;
  font-size: 0.95rem;
  line-height: 1.5;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Header === */
.header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.35rem;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-orange);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: transform 0.3s ease, background 0.3s ease;
}
.logo:hover .logo-icon {
  transform: rotate(-5deg) scale(1.05);
  background: var(--accent-orange-hover);
}
.nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--accent-orange); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-primary:focus-visible,
.btn:focus-visible { outline: 2px solid var(--accent-orange); outline-offset: 2px; }
@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35); }
  50% { box-shadow: 0 6px 28px rgba(249, 115, 22, 0.5); }
}
.btn-hero.btn-primary { animation: subtlePulse 2.5s ease-in-out infinite; }
.btn-hero.btn-primary:hover { animation: none; }
.btn-primary {
  background: var(--accent-orange);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-orange-hover); }
.btn-nav { white-space: nowrap; }

/* === Hero === */
.hero {
  max-width: 1200px;
  margin: 32px auto 48px;
  padding: 48px 40px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
  animation: heroCardIn 0.8s ease-out;
}
@keyframes heroCardIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 32px 24px; }
  .hero-visual { order: -1; }
}
.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--text-dark);
}
.hero-desc {
  color: var(--text-muted);
  margin: 0 0 28px;
  font-size: 1.05rem;
}
.btn-hero {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}
.btn-start-quiz { margin-top: 8px; }
.hero-visual { position: relative; }
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 320px;
  background: linear-gradient(145deg, #e5e7eb 0%, #d1d5db 100%);
}
.hero-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
.hero-badge {
  position: absolute;
  background: rgba(26, 26, 46, 0.9);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  animation: floatBadge 4s ease-in-out infinite;
}
.hero-badge-1 { top: 20%; left: 10%; animation-delay: 0s; }
.hero-badge-2 { top: 50%; right: 15%; animation-delay: 1.5s; }
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* === Animations for hero === */
.animate-fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.7s ease-out forwards;
}
.animate-fade-in.delay-1 { animation-delay: 0.15s; }
.animate-fade-in.delay-2 { animation-delay: 0.3s; }

/* === Features dark block === */
.features-dark {
  background: var(--accent-green);
  color: #fff;
  border-radius: var(--radius);
  margin: 0 20px 48px;
  padding: 56px 40px;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
  animation: fadeInUp 0.7s ease-out;
}
.features-title {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px;
}
.features-subtitle {
  text-align: center;
  margin: 0 0 40px;
  opacity: 0.9;
  font-size: 1.05rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.feature-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 28px;
  transition: transform 0.3s, background 0.3s;
  animation: fadeInUp 0.6s ease-out backwards;
}
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
}
.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* === Key features section === */
.key-features {
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 0 20px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 40px;
  font-size: 1.05rem;
}
.key-features-list { display: flex; flex-direction: column; gap: 24px; }
.key-feature-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--bg-card);
  padding: 28px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeInUp 0.5s ease-out backwards;
}
.key-feature-item:nth-child(1) { animation-delay: 0.1s; }
.key-feature-item:nth-child(2) { animation-delay: 0.2s; }
.key-feature-item:nth-child(3) { animation-delay: 0.3s; }
.key-feature-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-hover);
}
.key-feature-icon { font-size: 2rem; flex-shrink: 0; }
.key-feature-item h3 { margin: 0 0 8px; font-size: 1.15rem; }
.key-feature-item p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.key-feature-item a {
  color: var(--accent-orange);
  font-weight: 500;
  text-decoration: none;
}
.key-feature-item a:hover { text-decoration: underline; }

/* === Footer === */
.footer {
  background: var(--text-dark);
  color: #fff;
  padding: 40px 24px 32px;
  text-align: center;
}
.footer .footer-links { justify-content: center; }
.footer .footer-copy { text-align: center; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 28px;
  margin-bottom: 24px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-links a {
  position: relative;
}
.footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.3s ease;
}
.footer-links a:hover::after { width: 100%; }
.footer-links a:hover { color: var(--accent-orange); }
.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* ========== QUIZ PAGE ========== */
.quiz-page { padding: 24px 20px 60px; max-width: 640px; margin: 0 auto; }
.quiz-page .disclaimer-section { max-width: 100%; padding: 0 0 16px 0; }
.quiz-page .disclaimer-box { width: 100%; }
.quiz-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}
.quiz-step { display: none; }
.quiz-step.active {
  display: block;
  animation: quizStepIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes quizStepIn {
  from { opacity: 0; transform: translateX(24px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
.quiz-progress-fill { transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.quiz-intro .quiz-title { font-size: 1.6rem; margin-bottom: 16px; }
.quiz-intro .quiz-desc { color: var(--text-muted); margin-bottom: 32px; }
.quiz-progress-wrap { margin-bottom: 28px; }
.quiz-progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-green));
  border-radius: 999px;
  transition: width 0.4s ease;
}
.quiz-question-title { font-size: 1.2rem; margin-bottom: 24px; font-weight: 600; }
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-light);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s;
  text-align: left;
  font-family: var(--font);
  font-size: 1rem;
}
.quiz-option:hover {
  border-color: var(--accent-orange);
  background: #fff7ed;
}
.quiz-option.selected {
  border-color: var(--accent-orange);
  background: #fff7ed;
  box-shadow: 0 0 0 1px var(--accent-orange);
}
.quiz-option input { display: none; }
.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 16px;
}
.quiz-nav .btn { min-width: 120px; }
.quiz-nav .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-secondary {
  background: #e5e7eb;
  color: var(--text-dark);
}
.btn-secondary:hover { background: #d1d5db; }

/* Stats step */
.quiz-stats-title { font-size: 1.35rem; margin-bottom: 8px; }
.quiz-stats-desc { color: var(--text-muted); margin-bottom: 28px; font-size: 0.95rem; }
.stats-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: linear-gradient(145deg, var(--accent-green), var(--accent-green-light));
  color: #fff;
  padding: 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  animation: scaleIn 0.4s ease-out backwards;
}
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; display: block; }
.stat-card .stat-label { font-size: 0.85rem; opacity: 0.9; }
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Scroll-triggered visibility */
.animate-visible { animation: fadeInUp 0.6s ease-out forwards; }
.quiz-option { animation: fadeInUp 0.35s ease-out backwards; }
.quiz-option:nth-child(1) { animation-delay: 0.05s; }
.quiz-option:nth-child(2) { animation-delay: 0.1s; }
.quiz-option:nth-child(3) { animation-delay: 0.15s; }

/* Thank you step */
.quiz-thanks { text-align: center; }
.quiz-thanks .quiz-title { font-size: 1.5rem; margin-bottom: 12px; }
.quiz-thanks .quiz-desc { margin-bottom: 28px; max-width: 100%; }
.quiz-thanks .quiz-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.quiz-thanks .btn { display: inline-flex; margin: 0; }
.quiz-thanks .quiz-btn-secondary { margin-left: 0; }

/* ========== LEGAL PAGES ========== */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.legal-page h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}
.legal-page .updated { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.25rem; margin-top: 28px; margin-bottom: 10px; }
.legal-page p, .legal-page li { color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }
.legal-page ul { padding-left: 24px; }
.legal-page a { color: var(--accent-orange); text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }
.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.legal-page .back-link:hover { color: var(--accent-orange); }

/* Contact page */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.contact-list strong { min-width: 100px; }
