/* CMMS Perfect — "Csendes prémium"
   Talpas display (Instrument Serif) + tiszta sans (Instrument Sans),
   hűvös törtfehér alap, egyetlen piros hangsúly. Betűk saját szerverről (GDPR). */
@import url("/fonts/fonts.css?v=2");

:root {
  --bg: #f4f5f2;
  --surface: #ffffff;
  --ink: #161b21;
  --muted: #4a535c;
  --soft: #5a636c;
  --line: #dfe2dc;
  --red: #b8322c;
  --green: #1f7a4f;
  --dark: #11151a;
  --dark-ink: #eef0ec;
  --dark-muted: #a3acb4;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Fejléc ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 245, 242, .78);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; max-width: none; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 600; font-size: 17px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 34px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.top nav a:hover { color: var(--ink); }
.top nav .pill { color: var(--ink); font-weight: 600; padding: 10px 18px; border-radius: 999px; border: 1px solid #c9ced3; transition: background .2s, border-color .2s; }
.top nav .pill:hover { background: var(--surface); border-color: var(--ink); }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none;
  font-weight: 600; font-size: 16px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(22, 27, 33, .18); }
.btn svg { width: 18px; height: 18px; }
.btn.light { background: var(--dark-ink); color: var(--dark); }

/* ---------- Tipográfia ---------- */
.eyebrow { font-size: 14px; color: var(--soft); margin: 0; }
.eyebrow .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 10px; vertical-align: 2px; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 em, h2 em { color: var(--red); }
h2 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1; }
h3 { font-size: 19px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.005em; }
p { text-wrap: pretty; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); }

/* ---------- Hős ---------- */
.hero { position: relative; overflow: hidden; text-align: center; padding-top: clamp(40px, 7vh, 72px); }
.hero .copy { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero h1 { font-size: clamp(52px, 8.2vw, 112px); line-height: .95; max-width: 1100px; }
.hero .lead { max-width: 640px; margin: 0; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; justify-content: center; padding-top: 6px; }
.hero .cta span { font-size: 15px; color: var(--soft); }

.fan { position: relative; height: clamp(420px, 44vw, 600px); margin-top: clamp(40px, 6vh, 64px); }
.phone {
  position: absolute; padding: 9px; border-radius: 44px; background: var(--dark);
  box-shadow: 0 30px 80px rgba(22, 27, 33, .18);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 36px; }
.fan .phone { width: clamp(220px, 20vw, 280px); aspect-ratio: 0.482; top: 70px; left: 50%; animation: rise 1.1s var(--ease) both; }
.fan .p-left { transform: translateX(-138%) rotate(-8deg); animation-delay: .12s; }
.fan .p-right { transform: translateX(38%) rotate(8deg); animation-delay: .24s; }
.fan .p-mid { width: clamp(240px, 21.5vw, 300px); top: 0; transform: translateX(-50%); z-index: 2; box-shadow: 0 40px 100px rgba(22, 27, 33, .26); }
@keyframes rise { from { opacity: 0; translate: 0 80px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Szakaszok ---------- */
section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head .lead { margin: 0; }

/* Lépések */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.step { border-top: 1px solid var(--ink); padding-top: 22px; }
.step .n { font-family: var(--serif); font-style: italic; font-size: 64px; line-height: 1; color: var(--red); display: block; margin-bottom: 18px; }
.step p { margin: 0; color: var(--muted); }

/* Bemutató sorok */
.features { border-top: 1px solid var(--line); background: var(--surface); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; padding: clamp(64px, 8vw, 110px) 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature .text { display: flex; flex-direction: column; gap: 20px; max-width: 480px; }
.feature .text p { margin: 0; }
.feature .stage { display: flex; justify-content: center; }
.feature .phone { position: relative; width: min(300px, 70vw); aspect-ratio: 0.482; }
.feature.flip .text { order: 2; }
.facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 16px; display: flex; gap: 12px; }
.facts li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-top: 10px; }

/* QR szakasz — sötét */
.scan { background: var(--dark); color: var(--dark-ink); }
.scan .grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.scan h2 em { color: #ff8a80; }
.scan .lead { color: var(--dark-muted); margin: 22px 0 32px; }
.label {
  justify-self: center; width: min(340px, 80vw); background: #ffffff; color: var(--ink);
  border-radius: 18px; padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45); transform: rotate(-3deg);
  transition: transform .6s var(--ease);
}
.label:hover { transform: rotate(0deg) scale(1.02); }
.label svg { width: 100%; height: auto; display: block; }
.label .meta { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.label .meta b { font-size: 20px; }
.label .meta span { font: 500 14px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--soft); }
.scan .hint { font-size: 14px; color: var(--dark-muted); text-align: center; margin-top: 18px; }

/* Csomagok */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 22px; }
.plan.pro { background: var(--dark); color: var(--dark-ink); border-color: var(--dark); }
.plan .name { font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.plan .tag { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.plan .price { font-family: var(--serif); font-size: 56px; line-height: 1; letter-spacing: -0.02em; }
.plan .price small { font-family: var(--sans); font-size: 16px; color: var(--soft); letter-spacing: 0; margin-left: 8px; }
.plan.pro .price small { color: var(--dark-muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 12px; font-size: 16px; }
.plan li svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--green); }
.plan.pro li svg { color: #6fd3a0; }
.plan .note { font-size: 14px; color: var(--soft); margin: auto 0 0; }
.plan.pro .note { color: var(--dark-muted); }

/* GYIK */
.faq { max-width: 860px; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  font-size: clamp(19px, 2vw, 22px); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #c9ced3; position: relative; transition: transform .35s var(--ease), background .2s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); translate: -50% -50%; }
.faq summary .plus::after { rotate: 90deg; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--surface); }
.faq details p { margin: 0 0 26px; color: var(--muted); max-width: 680px; }

/* Záró felhívás */
.final { text-align: center; padding-bottom: clamp(100px, 12vw, 160px); }
.final .wrap { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.final h2 { font-size: clamp(48px, 7vw, 96px); max-width: 900px; }
.final p { margin: 0; color: var(--soft); }

/* Lábléc */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--soft); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 26px; }
footer a { text-decoration: none; color: var(--muted); }
footer a:hover { color: var(--ink); }

/* Görgetéses beúszás (csak JS-sel rejt) */
.js .reveal { opacity: 0; translate: 0 36px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Jogi oldalak + QR-fallback ---------- */
.doc { padding: clamp(48px, 7vw, 88px) 0 clamp(80px, 10vw, 120px); }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1; margin: 12px 0 28px; }
.legal { font-size: 16px; }
.legal h2 { font-family: var(--sans); font-size: 20px; font-weight: 600; letter-spacing: -0.005em; margin: 44px 0 10px; line-height: 1.3; }
.legal p, .legal li { color: #2b3239; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--red); }
.legal .meta { color: var(--soft); font-size: 14px; }
.legal .todo { background: #fbf1e4; border: 1px solid #efd9b8; border-radius: 14px; padding: 16px 20px; font-size: 15px; }

.fallback { min-height: calc(100vh - 72px - 120px); display: flex; align-items: center; }
.fallback .wrap { max-width: 720px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.fallback h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1; margin: 0; }
.fallback .id { display: inline-flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: 500 15px/1 ui-monospace, "SF Mono", Menlo, monospace; }

/* ---------- Mobil ---------- */
@media (max-width: 880px) {
  .top nav a:not(.pill) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .feature, .scan .grid { grid-template-columns: 1fr; }
  .feature.flip .text { order: 0; }
  .feature .text { max-width: none; }
  .plans { grid-template-columns: 1fr; }
  .fan { height: 480px; }
  .fan .p-left, .fan .p-right { display: none; }
  .fan .p-mid { width: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: 0 0; }
}
