/* ============================================================
   Kemény dió – Helyesírási teszt landing oldal
   Design közelítés a hmkonyvek.hu publikus megjelenése alapján
   (nem 1:1 másolat — nincs hozzáférésünk a tényleges brand
   fájlokhoz / CSS-hez, csak a nyilvánosan látható stílushoz).
   ============================================================ */

:root {
  --color-bg: #f6f1e7;
  --color-bg-alt: #efe6d6;
  --color-surface: #ffffff;
  --color-text: #2b2420;
  --color-text-muted: #6b5f52;
  --color-accent: #7a2e2e;
  --color-accent-hover: #5e2222;
  --color-border: #ded2bd;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: 720px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo { height: 42px; display: block; }
.header-tag {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  border-left: 1px solid var(--color-border);
  padding-left: 16px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0 0 20px;
  font-weight: 600;
}
.hero-lead {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: background-color .15s ease, transform .1s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.btn-secondary:hover { background: var(--color-accent); color: #fff; }

/* Gate / newsletter section */
.gate-section {
  padding: 56px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.gate-section h2, .quiz-section h2 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  margin: 0 0 12px;
  text-align: center;
}
.section-lead {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.form-row input[type="email"] {
  flex: 1 1 260px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--color-bg);
}
.form-row input[type="email"]:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.consent-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  cursor: pointer;
}
.checkbox-row input { margin-top: 3px; flex-shrink: 0; }
.checkbox-row a { color: var(--color-accent); }

.fine-print {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.fine-print a { color: var(--color-accent); }

.form-status {
  min-height: 1.4em;
  font-size: 0.92rem;
  font-weight: 600;
}
.form-status.success { color: #2e6b3e; }
.form-status.error { color: var(--color-accent); }

/* Quiz section */
.quiz-section { padding: 56px 0 80px; }
.quiz-wrapper {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
}
.quiz-wrapper iframe {
  display: block;
  border: none;
  filter: blur(6px);
  transition: filter .3s ease;
  pointer-events: none;
}
.quiz-section:not(.locked) .quiz-wrapper iframe {
  filter: none;
  pointer-events: auto;
}
.quiz-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(246, 241, 231, 0.85);
  transition: opacity .3s ease;
}
.quiz-section:not(.locked) .quiz-lock-overlay {
  opacity: 0;
  pointer-events: none;
}
.lock-card {
  text-align: center;
  padding: 32px;
  max-width: 320px;
}
.lock-icon { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.lock-card p { margin: 0 0 18px; color: var(--color-text); font-weight: 500; }

/* Footer */
.site-footer {
  background: #efe6d6;
  border-top: 1px solid var(--color-border);
  padding: 48px 0 24px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text);
  margin: 0 0 12px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--color-text-muted); text-decoration: none; }
.footer-col a:hover { color: var(--color-accent); }
.social-links { display: flex; gap: 14px; margin-top: 12px; }
.copyright { font-size: 0.8rem; margin: 0; padding-top: 16px; border-top: 1px solid var(--color-border); }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .form-row button { width: 100%; }
}
