/*
Theme Name: Digitális Nyugta
Theme URI: https://digitalisnyugta.eu
Author: Tamas
Description: Egyoldalas landing + várólista a digitalisnyugta.eu számára. E-nyugta átállás 2026.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: digitalisnyugta
*/

/* ============ Tokens ============ */
:root {
  --paper: #f7f6f1;        /* hőpapír */
  --paper-deep: #efede5;
  --ink: #1a1a1c;          /* nyomdafesték */
  --ink-soft: #4c4c52;
  --blue: #1f3a8f;         /* hivatalos kék */
  --blue-deep: #16296b;
  --red: #d23a2b;          /* határidő piros */
  --line: rgba(26, 26, 28, 0.14);
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --sans: "Archivo", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }

/* ============ Top bar ============ */
.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand .dot { color: var(--red); }
.top-deadline {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.top-deadline strong { color: var(--red); font-weight: 600; }

/* ============ Hero ============ */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
h1 .strike {
  position: relative;
  white-space: nowrap;
}
h1 .strike::after {
  content: "";
  position: absolute;
  left: -2%;
  top: 54%;
  width: 104%;
  height: 0.09em;
  background: var(--red);
  transform: rotate(-1.5deg);
}
.hero-lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 32px;
}
.hero-lead strong { color: var(--ink); }

/* Form */
.signup {
  display: flex;
  gap: 10px;
  max-width: 480px;
  flex-wrap: wrap;
}
.signup input[type="email"] {
  flex: 1 1 240px;
  font-family: var(--mono);
  font-size: 15px;
  padding: 15px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.signup input[type="email"]:focus {
  outline: 3px solid rgba(31, 58, 143, 0.35);
  outline-offset: 1px;
  border-color: var(--blue);
}
.btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 26px;
  border: 1.5px solid var(--blue-deep);
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.form-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 12px;
}
.form-msg {
  font-family: var(--mono);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 18px;
  max-width: 480px;
}
.form-msg.ok { background: #e7f0e7; border: 1px solid #9dbf9d; color: #205320; }
.form-msg.err { background: #f7e6e4; border: 1px solid #d9a09a; color: #7c241b; }

/* ============ A nyugta (signature) ============ */
.receipt-stage {
  display: flex;
  justify-content: center;
  perspective: 900px;
}
.receipt {
  width: min(340px, 100%);
  background: #fffdf8;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  padding: 26px 22px 30px;
  box-shadow: 0 18px 45px rgba(26, 26, 28, 0.18);
  transform: rotate(1.6deg);
  position: relative;
  animation: printIn 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@keyframes printIn {
  from { transform: rotate(1.6deg) translateY(-26px); opacity: 0; }
  to   { transform: rotate(1.6deg) translateY(0); opacity: 1; }
}
/* perforált szélek */
.receipt::before, .receipt::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 10px;
  background-image: radial-gradient(circle at 6px 0, transparent 5px, #fffdf8 5px);
  background-size: 14px 10px;
  background-repeat: repeat-x;
}
.receipt::before { top: -9px; transform: scaleY(-1); }
.receipt::after { bottom: -9px; }
.r-center { text-align: center; }
.r-h {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.r-sub { font-size: 11px; color: var(--ink-soft); }
.r-rule {
  border: none;
  border-top: 1.5px dashed var(--line);
  margin: 14px 0;
}
.r-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.r-row .val { font-weight: 600; white-space: nowrap; }
.r-row .val.out { color: var(--ink-soft); text-decoration: line-through; }
.r-row .val.red { color: var(--red); }
.r-count {
  text-align: center;
  margin: 10px 0 4px;
}
.r-count .num {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--blue-deep);
  line-height: 1.1;
}
.r-count .lab {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.r-qr {
  width: 88px;
  height: 88px;
  margin: 14px auto 6px;
  background:
    conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 22px 22px,
    #fffdf8;
  outline: 6px solid #fffdf8;
  border: 2px solid var(--ink);
}
.r-foot { font-size: 10.5px; color: var(--ink-soft); }

/* ============ Sections ============ */
section { padding: 78px 0; }
.section-alt { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.section-lead { color: var(--ink-soft); max-width: 60ch; margin-bottom: 42px; font-size: 17px; }

/* Tények */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 24px;
}
.fact .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.fact h3 { font-size: 19px; margin-bottom: 10px; line-height: 1.3; }
.fact p { font-size: 15px; color: var(--ink-soft); }

/* Kit érint */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip {
  font-family: var(--mono);
  font-size: 13.5px;
  padding: 9px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
}
.chip.hot { background: var(--ink); color: var(--paper); }

/* Mit kapsz */
.gets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.get { border-top: 3px solid var(--blue); padding-top: 18px; }
.get h3 { font-size: 18px; margin-bottom: 8px; }
.get p { font-size: 15px; color: var(--ink-soft); }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--blue); font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-soft); font-size: 15.5px; max-width: 70ch; }

/* CTA sáv */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band .section-lead { color: rgba(247, 246, 241, 0.75); margin-left: auto; margin-right: auto; }
.cta-band .signup { margin: 0 auto; justify-content: center; }
.cta-band .signup input[type="email"] { border-color: transparent; }
.cta-band .form-note { color: rgba(247, 246, 241, 0.6); }
.cta-band .form-msg { margin-left: auto; margin-right: auto; }

/* Lábléc */
footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
}
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  max-width: 64ch;
}
.foot-brand { font-family: var(--mono); font-size: 13px; }

/* ============ Adatkezelési oldal ============ */
.policy { padding: 64px 0 90px; }
.policy-wrap { max-width: 780px; }
.policy-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 10px;
}
.policy-meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.policy h2 {
  font-size: 24px;
  margin: 44px 0 12px;
}
.policy h3 { font-size: 18px; margin: 26px 0 10px; }
.policy p { margin-bottom: 14px; font-size: 16px; }
.policy ul { margin: 0 0 16px 22px; }
.policy ul li { margin-bottom: 6px; font-size: 16px; }
.policy mark { background: #ffe89a; padding: 1px 5px; border-radius: 3px; }
.policy-todo {
  background: #fff7dd;
  border: 1.5px dashed #d9b948;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 14.5px;
  margin-bottom: 36px;
}
.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--line);
}
.policy-table th, .policy-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.policy-table th {
  width: 170px;
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-weight: 600;
  background: var(--paper-deep);
}
.policy-table tr:last-child th, .policy-table tr:last-child td { border-bottom: none; }

/* ============ Mobil ============ */
@media (max-width: 880px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .facts, .gets { grid-template-columns: 1fr; }
  .top-deadline { display: none; }
  section { padding: 60px 0; }
}
