/* ==========================================================================
   Rubikube — landing / marketing stylesheet
   Dark, premium, self-contained: no CDN, no external fonts, no images.
   Shared by: landing.html, legal.html, checkout-demo.html
   ========================================================================== */

:root {
  --bg: #06080f;
  --bg-2: #0a0f1c;
  --panel: #0d1424;
  --panel-2: #111a2e;
  --line: #1d2942;
  --line-soft: #162034;
  --text: #e9eefb;
  --muted: #94a3bf;
  --muted-2: #6c7c9c;
  --accent: #8b5cf6;
  --accent-soft: #a78bfa;
  --accent-ink: #ffffff;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;

  /* A kocka hat oldalának színei (vault + seed.mjs FACE_MAP) */
  --face-white: #f2f5fb;
  --face-yellow: #ffd500;
  --face-red: #e5375a;
  --face-green: #00c176;
  --face-blue: #3b82f6;
  --face-orange: #ff7a1a;

  --radius: 16px;
  --radius-sm: 10px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 38px;
  --max: 1160px;
  --nav-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 18px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  /* subtle premium glow field */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(820px 420px at 12% -8%, rgba(139, 92, 246, .16), transparent 60%),
    radial-gradient(700px 380px at 92% 4%, rgba(34, 197, 94, .09), transparent 62%),
    radial-gradient(900px 520px at 50% 108%, rgba(59, 130, 246, .08), transparent 65%);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.14; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, label { font-family: inherit; }
button { cursor: pointer; }

::selection { background: rgba(139, 92, 246, .38); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- shared primitives ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: 96px 0; position: relative; z-index: 1; }
.section--tight { padding: 72px 0; }
.section--alt { background: linear-gradient(180deg, rgba(13, 20, 36, .55), rgba(6, 8, 15, 0)); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.7; }

.grad-text {
  background: linear-gradient(100deg, #fff 10%, #cfc2ff 46%, #98f0c4 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font-size: 15px; font-weight: 600;
  line-height: 1; white-space: nowrap; transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.btn:hover { transform: translateY(-1px); border-color: #33456b; background: #16213a; }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, #9d6bff, #7c3aed);
  border-color: rgba(167, 139, 250, .6);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(139, 92, 246, .85), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover { background: linear-gradient(180deg, #ab7dff, #8b46f5); border-color: #b79cff; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 10px 16px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.card {
  background: linear-gradient(180deg, rgba(17, 26, 46, .92), rgba(10, 15, 28, .92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 24px 60px -48px rgba(0, 0, 0, .9);
}
.note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.mono { font-family: var(--mono); font-size: .92em; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(13, 20, 36, .8); color: var(--muted); font-size: 12px; font-weight: 500;
}

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(6, 8, 15, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(29, 41, 66, .7);
}
.nav-in { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { display: block; flex: none; border-radius: 10px; }
.brand .brand-mark {
  width: 36px; height: 36px;
  box-shadow: 0 0 26px -8px rgba(139, 92, 246, .8);
}
.brand b { display: block; font-size: 17px; letter-spacing: -.01em; line-height: 1.15; }
.brand small { display: block; color: var(--muted-2); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links > a:not(.btn) {
  padding: 8px 12px; border-radius: 9px; font-size: 14px; color: var(--muted);
  transition: color .14s ease, background .14s ease;
}
.nav-links > a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-links .nav-sep { width: 1px; height: 20px; background: var(--line); margin: 0 8px; }
.nav-toggle {
  display: none; place-items: center; margin-left: auto; width: 42px; height: 40px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  border-radius: 10px; line-height: 1;
}
.nav-toggle .ic { width: var(--icon-lg); height: var(--icon-lg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 84px 0 76px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; left: 50%; top: -220px; width: 760px; height: 760px;
  transform: translateX(-50%); pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(139, 92, 246, .18), transparent 62%);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px 6px 8px;
  border: 1px solid #2b3a5e; border-radius: 999px; background: rgba(13, 20, 36, .8);
  font-size: 12.5px; color: #c6d2ea; margin-bottom: 24px;
}
.hero-badge .brand-mark { width: 22px; height: 22px; border-radius: 6px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; letter-spacing: -.035em; line-height: 1.03; }
.hero-sub { margin-top: 24px; color: var(--muted); font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.72; max-width: 560px; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-cta .btn { padding: 15px 24px; font-size: 15.5px; }
.hero-meta { margin-top: 16px; color: var(--muted-2); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .ic { width: 14px; height: 14px; color: var(--ok); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 40px; max-width: 520px; }
.stat {
  border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px;
  background: linear-gradient(180deg, rgba(17, 26, 46, .75), rgba(10, 15, 28, .55));
}
.stat b { display: block; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; }
.stat span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

/* CSS 3D kocka — a 6 oldal a 6 rendszer */
.cube-stage { position: relative; display: grid; place-items: center; min-height: 380px; perspective: 1200px; }
.cube-stage::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .22), transparent 62%);
  filter: blur(18px);
}
.cube {
  position: relative; width: 172px; height: 172px; transform-style: preserve-3d;
  animation: cube-spin 30s linear infinite;
}
.cube:hover { animation-play-state: paused; }
.cube .face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1.5px solid var(--fc); border-radius: 12px;
  background: color-mix(in srgb, var(--fc) 13%, #0b1120);
  box-shadow: inset 0 0 34px rgba(0, 0, 0, .55), 0 0 22px -6px var(--fc);
  transform-style: preserve-3d; backface-visibility: visible;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: color-mix(in srgb, var(--fc) 55%, #fff);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .75);
  text-align: center; padding: 6px;
}
.cube .face .face-panel {
  width: 34px; height: 34px; border-radius: 9px; background: var(--fc);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 8px 20px -8px var(--fc);
}
.cube .face .nm { letter-spacing: .02em; }
.cube .f1 { --fc: var(--face-white); transform: rotateY(0deg) translateZ(86px); }
.cube .f2 { --fc: var(--face-yellow); transform: rotateY(90deg) translateZ(86px); }
.cube .f3 { --fc: var(--face-red); transform: rotateY(180deg) translateZ(86px); }
.cube .f4 { --fc: var(--face-green); transform: rotateY(-90deg) translateZ(86px); }
.cube .f5 { --fc: var(--face-blue); transform: rotateX(90deg) translateZ(86px); }
.cube .f6 { --fc: var(--face-orange); transform: rotateX(-90deg) translateZ(86px); }
@keyframes cube-spin {
  0% { transform: rotateX(-18deg) rotateY(24deg); }
  50% { transform: rotateX(-14deg) rotateY(204deg); }
  100% { transform: rotateX(-18deg) rotateY(384deg); }
}
.cube-caption {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  color: var(--muted-2); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}

/* ---------- faces ---------- */
.faces-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.face-card { position: relative; padding: 24px 22px; overflow: hidden; transition: transform .16s ease, border-color .16s ease; }
.face-card:hover { transform: translateY(-3px); border-color: #33456b; }
.face-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--fc), transparent 82%);
}
.face-card .fc-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.face-card .fc-emoji {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--fc) 14%, #0b1120); border: 1px solid color-mix(in srgb, var(--fc) 42%, transparent);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .35);
}
.face-card .fc-emoji .ic { width: 20px; height: 20px; color: var(--fc); }
.face-card h3 { font-size: 17.5px; }
.face-card .fc-sub { color: var(--muted-2); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.face-card p { color: var(--muted); font-size: 14px; line-height: 1.66; }
.face-card .fc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.face-card .fc-tags span {
  font-size: 11.5px; color: #b9c6e0; padding: 3px 9px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--fc) 26%, var(--line)); background: color-mix(in srgb, var(--fc) 7%, transparent);
}

/* curriculum chips */
.curriculum { margin-top: 34px; }
.curriculum .curr-title { color: var(--muted-2); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.mod-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(13, 20, 36, .7); font-size: 13px; color: #c8d4ea;
}
.mod-chip .n { color: var(--muted-2); font-size: 10.5px; font-family: var(--mono); }
.mod-chip .em { display: inline-flex; align-items: center; }
.mod-chip .em .ic { width: 14px; height: 14px; color: var(--muted); }
.mod-chip .em .face-chip { width: 12px; height: 12px; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.step { padding: 24px 20px; position: relative; }
.step .num {
  font-family: var(--mono); font-size: 12px; color: var(--accent-soft);
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid #3b2d6b; background: rgba(139, 92, 246, .12); margin-bottom: 16px;
}
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 13.8px; line-height: 1.65; }
.step .step-meta { display: inline-block; margin-top: 12px; font-size: 11.5px; color: var(--muted-2); border-top: 1px dashed var(--line); padding-top: 9px; width: 100%; }
.steps-note { margin-top: 22px; color: var(--muted-2); font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.steps-note .ic { color: var(--accent-soft); }

/* ---------- proof ---------- */
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 44px; align-items: center; }
.proof-copy h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 18px; }
.proof-copy p { color: var(--muted); font-size: 16px; line-height: 1.72; }
.proof-copy p + p { margin-top: 14px; }
.proof-list { margin-top: 24px; display: grid; gap: 11px; }
.proof-list li { display: flex; gap: 11px; font-size: 14.5px; color: #cdd8ee; line-height: 1.55; }
.proof-list .tick { color: var(--ok); flex: 0 0 auto; display: inline-flex; margin-top: 3px; }
.proof-list .tick .ic { width: 16px; height: 16px; }
.proof-panel { padding: 24px; }
.pipeline-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.pipeline-title b { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pipeline { display: grid; gap: 9px; }
.pl-node {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px;
  border: 1px solid var(--line); background: rgba(8, 13, 24, .72);
  font-family: var(--mono); font-size: 12.5px; color: #c6d3ec;
  transition: border-color .16s ease, transform .16s ease;
}
.pl-node:hover { border-color: #3a4d7a; transform: translateX(2px); }
.pl-node .arrow { color: var(--muted-2); display: inline-flex; align-items: center; }
.pl-node .arrow .ic { width: 15px; height: 15px; }
.pl-node > .ic { width: 16px; height: 16px; color: var(--accent-soft); }
.pl-node .badge { margin-left: auto; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.pl-node .ok { color: var(--ok); }
.proof-foot { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); color: var(--muted-2); font-size: 12px; line-height: 1.6; }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px 24px; position: relative; transition: transform .16s ease, border-color .16s ease; }
.plan:hover { transform: translateY(-3px); }
.plan.featured {
  border-color: rgba(139, 92, 246, .62);
  background:
    linear-gradient(180deg, rgba(139, 92, 246, .12), rgba(10, 15, 28, .94) 42%),
    linear-gradient(180deg, rgba(17, 26, 46, .92), rgba(10, 15, 28, .92));
  box-shadow: 0 30px 80px -50px rgba(139, 92, 246, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: linear-gradient(180deg, #9d6bff, #7c3aed);
  border: 1px solid rgba(167, 139, 250, .7); border-radius: 999px; padding: 4px 13px;
  box-shadow: 0 8px 24px -10px rgba(139, 92, 246, .9); white-space: nowrap;
}
.plan .p-name { font-size: 19px; margin-bottom: 5px; }
.plan .p-tag { color: var(--muted); font-size: 13px; min-height: 42px; line-height: 1.55; }
.plan .p-price { margin: 20px 0 2px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan .p-price b { font-size: clamp(29px, 3vw, 35px); letter-spacing: -.03em; font-weight: 800; }
.plan .p-price span { color: var(--muted); font-size: 13.5px; }
.plan .p-alt { color: var(--accent-soft); font-size: 12.5px; min-height: 20px; }
.plan .p-cta { margin: 20px 0 22px; }
.plan .p-feats { display: grid; gap: 9px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: auto; }
.plan .p-feats li { display: flex; gap: 9px; font-size: 13.5px; color: #ccd8ee; line-height: 1.5; }
.plan .p-feats li .ic { flex: 0 0 auto; color: var(--ok); font-weight: 700; }
.plan .p-feats li.off { color: var(--muted-2); }
.plan .p-feats li.off .ic { color: var(--muted-2); }
.plan .p-not { margin-top: 14px; color: var(--muted-2); font-size: 11.5px; line-height: 1.55; }
.pricing-note { margin-top: 26px; display: grid; gap: 8px; }
.pricing-note .note { display: flex; gap: 9px; }
.pricing-note .note .ic { color: var(--accent-soft); flex: 0 0 auto; }

/* ---------- guarantee ---------- */
.guar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guar-card { padding: 30px 26px; }
.guar-card .g-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.guar-card .g-ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .34);
  color: var(--ok);
}
.guar-card .g-ic .ic { width: 22px; height: 22px; }
.guar-card.key .g-ic { color: var(--accent-soft); }
.guar-card.key .g-ic { background: rgba(139, 92, 246, .12); border-color: rgba(139, 92, 246, .4); }
.guar-card h3 { font-size: 20px; }
.guar-card .g-sub { color: var(--muted-2); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.guar-card > p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.guar-card ul { margin-top: 18px; display: grid; gap: 9px; }
.guar-card ul li { display: flex; gap: 10px; font-size: 13.8px; color: #ccd8ee; line-height: 1.55; }
.guar-card ul li .n {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .3); color: var(--accent-soft);
  font-size: 10.5px; font-family: var(--mono); margin-top: 1px;
}
.honest-box {
  margin-top: 16px; padding: 22px 24px; border-radius: var(--radius);
  border: 1px solid rgba(245, 158, 11, .3);
  background: linear-gradient(180deg, rgba(245, 158, 11, .07), rgba(10, 15, 28, .5));
}
.honest-box h4 { display: flex; align-items: center; gap: 9px; font-size: 15px; margin-bottom: 10px; color: #ffd9a1; }
.honest-box h4 .ic { width: var(--icon); height: var(--icon); color: var(--warn); }
.honest-box p { color: var(--muted); font-size: 13.8px; line-height: 1.7; }
.honest-box p + p { margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line); border-radius: 14px; background: rgba(13, 20, 36, .62);
  overflow: hidden; transition: border-color .15s ease, background .15s ease;
}
.faq details[open] { border-color: #33456b; background: rgba(17, 26, 46, .8); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  display: flex; align-items: center; gap: 14px; font-size: 15.5px; font-weight: 600; line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { flex: 1; }
.faq summary .pm {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted); transition: transform .18s ease, color .18s ease;
}
.faq summary .pm .ic { width: 15px; height: 15px; }
.faq details[open] summary .pm { transform: rotate(45deg); color: var(--accent-soft); }
.faq .a { padding: 0 22px 20px 22px; color: var(--muted); font-size: 14.3px; line-height: 1.72; }
.faq .a p + p { margin-top: 10px; }
.faq .a strong { color: #dbe5f7; font-weight: 600; }
.faq .a a { color: var(--accent-soft); border-bottom: 1px solid rgba(167, 139, 250, .4); }
.faq .a a:hover { border-color: var(--accent-soft); }
.faq-foot { text-align: center; margin-top: 26px; color: var(--muted-2); font-size: 13px; }
.faq-foot a { color: var(--accent-soft); }

/* ---------- lead magnet ---------- */
.lead-panel {
  position: relative; overflow: hidden;
  border: 1px solid #2c3c63; border-radius: 22px;
  background:
    radial-gradient(660px 260px at 84% -20%, rgba(34, 197, 94, .16), transparent 62%),
    radial-gradient(560px 300px at 4% 120%, rgba(139, 92, 246, .2), transparent 64%),
    linear-gradient(180deg, #101a2e, #0a1020);
  padding: 52px 48px;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 44px; align-items: center;
}
.lead-copy h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 16px; }
.lead-copy p { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.lead-copy .lead-list { margin-top: 20px; display: grid; gap: 9px; }
.lead-copy .lead-list li { display: flex; gap: 10px; color: #cdd8ee; font-size: 14px; }
.lead-copy .lead-list .ic { color: var(--ok); flex: 0 0 auto; }
.lead-form { display: grid; gap: 12px; }
.lead-form label { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.lead-form .field { display: grid; gap: 7px; }
.lead-form input[type="email"] {
  width: 100%; padding: 15px 16px; border-radius: 12px; font-size: 15px;
  border: 1px solid #324366; background: rgba(7, 11, 21, .85); color: var(--text);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.lead-form input[type="email"]::placeholder { color: #62718f; }
.lead-form input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, .18); }
.lead-form .btn { padding: 15px 20px; font-size: 15px; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-status { font-size: 13.5px; line-height: 1.55; min-height: 21px; }
.lead-status.ok { color: #7ee2a7; }
.lead-status.err { color: #ff9d9d; }
.lead-fine { color: var(--muted-2); font-size: 11.5px; line-height: 1.6; }
.lead-fine a { color: var(--muted); border-bottom: 1px solid var(--line); }

/* ---------- final CTA ---------- */
.final-cta { text-align: center; padding: 76px 0 96px; }
.final-cta h2 { font-size: clamp(28px, 3.6vw, 42px); max-width: 760px; margin: 0 auto 16px; }
.final-cta p { color: var(--muted); font-size: 16px; max-width: 620px; margin: 0 auto; line-height: 1.7; }
.final-cta .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); background: rgba(5, 7, 13, .72); padding: 54px 0 34px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer .brand { margin-bottom: 14px; }
.footer-text { color: var(--muted-2); font-size: 13px; line-height: 1.7; max-width: 330px; }
.footer h4 { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 13.5px; padding: 5px 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  color: var(--muted-2); font-size: 12px; line-height: 1.6;
}
.footer-bottom .disc { max-width: 640px; }
.footer-bottom .disc strong { color: var(--muted); font-weight: 600; }

/* ---------- legal page ---------- */
.legal-hero { padding: 58px 0 34px; }
.legal-hero h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.legal-hero p { color: var(--muted); font-size: 15px; max-width: 760px; line-height: 1.7; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 44px; padding-bottom: 90px; align-items: start; }
.legal-toc {
  position: sticky; top: calc(var(--nav-h) + 22px);
  border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: rgba(13, 20, 36, .7);
  display: grid; gap: 2px;
}
.legal-toc b { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.legal-toc a { color: var(--muted); font-size: 13px; padding: 5px 8px; border-radius: 8px; }
.legal-toc a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.legal-body { min-width: 0; }
.legal-block { padding: 34px 0; border-bottom: 1px solid var(--line-soft); }
.legal-block:last-child { border-bottom: 0; }
.legal-block h2 { font-size: clamp(23px, 2.6vw, 30px); margin-bottom: 16px; }
.legal-block h3 { font-size: 16.5px; margin: 24px 0 9px; color: #dbe5f7; }
.legal-block p, .legal-block li { color: #b7c4dd; font-size: 14.5px; line-height: 1.78; }
.legal-block p + p { margin-top: 12px; }
.legal-block ul, .legal-block ol { margin: 12px 0; padding-left: 22px; list-style: disc; }
.legal-block ol { list-style: decimal; }
.legal-block li { margin: 6px 0; }
.legal-block a { color: var(--accent-soft); border-bottom: 1px solid rgba(167, 139, 250, .35); }
.legal-block strong { color: #e3ebfa; font-weight: 600; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.legal-warn {
  border: 1px solid rgba(245, 158, 11, .32); background: rgba(245, 158, 11, .07);
  border-radius: 12px; padding: 15px 18px; color: #ffd9a1; font-size: 13px; line-height: 1.65; margin-bottom: 26px;
}
.legal-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; color: #b7c4dd; }
.legal-table th { background: var(--panel-2); color: #dbe5f7; font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.legal-placeholder { color: #ffd9a1; font-family: var(--mono); font-size: .94em; background: rgba(245, 158, 11, .1); padding: 1px 5px; border-radius: 5px; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; margin-top: 12px; }

/* ---------- checkout demo ---------- */
.checkout-wrap { max-width: 980px; margin: 0 auto; padding: 46px 24px 90px; position: relative; z-index: 1; }
.checkout-head { margin-bottom: 28px; }
.checkout-head h1 { font-size: clamp(27px, 3.4vw, 38px); margin: 10px 0 10px; }
.checkout-head p { color: var(--muted); font-size: 14.5px; }
.demo-banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 13px;
  border: 1px dashed rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .08);
  color: #ffd9a1; font-size: 13.5px; line-height: 1.6; margin-bottom: 24px;
}
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 18px; align-items: start; }
.checkout-card { padding: 26px 24px; }
.checkout-card h2 { font-size: 17px; letter-spacing: .01em; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.checkout-card h2 > .ic { width: var(--icon); height: var(--icon); color: var(--accent-soft); }
.checkout-info h3 .ic { width: var(--icon); height: var(--icon); color: var(--accent-soft); }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.sum-row b { color: var(--text); font-weight: 600; }
.sum-row.total { border-bottom: 0; padding-top: 15px; font-size: 16px; color: var(--text); }
.sum-row.total b { font-size: 19px; }
.sum-plan { margin: 6px 0 14px; }
.sum-plan .nm { font-size: 19px; font-weight: 700; }
.sum-plan .tg { color: var(--muted); font-size: 13px; margin-top: 3px; }
.checkout-form { display: grid; gap: 13px; margin-top: 8px; }
.checkout-form .field { display: grid; gap: 6px; }
.checkout-form label { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.checkout-form input {
  width: 100%; padding: 12px 14px; border-radius: 10px; font-size: 14.5px;
  border: 1px solid #2a3a5c; background: rgba(7, 11, 21, .85); color: var(--text); font-family: var(--mono);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.checkout-form input::placeholder { color: #5b6a88; font-family: var(--font); }
.checkout-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, .16); }
.checkout-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-form .btn { margin-top: 6px; padding: 14px; font-size: 15px; }
.checkout-status { font-size: 13.5px; line-height: 1.55; min-height: 20px; }
.checkout-status.err { color: #ff9d9d; }
.checkout-status.ok { color: #7ee2a7; }
.checkout-aside { display: grid; gap: 14px; }
.checkout-info { padding: 20px 22px; }
.checkout-info h3 { font-size: 14px; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.checkout-info p, .checkout-info li { color: var(--muted); font-size: 13px; line-height: 1.65; }
.checkout-info ul { display: grid; gap: 7px; padding-left: 18px; list-style: disc; }
.checkout-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.auth-panel { padding: 34px 32px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.auth-panel .ic { width: 34px; height: 34px; stroke-width: 1.75; color: var(--accent-soft); }
.auth-panel h2 { font-size: 21px; }
.auth-panel p { color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 440px; }
.auth-panel .btn { margin-top: 4px; }
.paid-banner { border-color: rgba(34, 197, 94, .4); background: rgba(34, 197, 94, .08); color: #9cf0bd; }

/* ---------- utilities ---------- */
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.top-link { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.top-link:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { gap: 36px; }
  .cube-stage { min-height: 320px; }
  .cube { width: 148px; height: 148px; }
  .cube .f1 { transform: rotateY(0deg) translateZ(74px); }
  .cube .f2 { transform: rotateY(90deg) translateZ(74px); }
  .cube .f3 { transform: rotateY(180deg) translateZ(74px); }
  .cube .f4 { transform: rotateY(-90deg) translateZ(74px); }
  .cube .f5 { transform: rotateX(90deg) translateZ(74px); }
  .cube .f6 { transform: rotateX(-90deg) translateZ(74px); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faces-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .hero { padding: 58px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; }
  .cube-stage { order: -1; min-height: 260px; }
  .cube { width: 124px; height: 124px; }
  .cube .f1 { transform: rotateY(0deg) translateZ(62px); }
  .cube .f2 { transform: rotateY(90deg) translateZ(62px); }
  .cube .f3 { transform: rotateY(180deg) translateZ(62px); }
  .cube .f4 { transform: rotateY(-90deg) translateZ(62px); }
  .cube .f5 { transform: rotateX(90deg) translateZ(62px); }
  .cube .f6 { transform: rotateX(-90deg) translateZ(62px); }
  .cube-caption { display: none; }
  .hero-sub { max-width: 100%; }
  .proof-grid, .lead-panel, .checkout-grid { grid-template-columns: 1fr; }
  .lead-panel { padding: 38px 30px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 20px; }
  .plan .p-tag { min-height: 0; }
  .plan .p-cta { margin-bottom: 18px; }
  .guar-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .legal-toc b { width: 100%; margin-bottom: 2px; }
  .legal-toc a { border: 1px solid var(--line); }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px 18px 20px; margin: 0;
    background: #070a13;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) { padding: 12px 10px; font-size: 15px; }
  .nav-links .nav-sep { display: none; }
  .nav-links .btn { margin-top: 8px; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .section { padding: 58px 0; }
  .section-head { margin-bottom: 34px; }
  .hero h1 { font-size: clamp(33px, 10vw, 42px); }
  .hero-cta .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 12px 11px; }
  .stat b { font-size: 21px; }
  .stat span { font-size: 10.5px; }
  .faces-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .lead-panel { padding: 30px 20px; border-radius: 18px; }
  .lead-form .btn { width: 100%; }
  .footer-bottom { flex-direction: column; }
  .checkout-wrap { padding: 28px 16px 70px; }
  .checkout-card { padding: 20px 17px; }
  .checkout-form .row { grid-template-columns: 1fr; }
  .legal-block { padding: 26px 0; }
  .legal-table { display: block; overflow-x: auto; white-space: nowrap; }
  .nav-in { padding: 0 18px; gap: 12px; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cube { animation: none; transform: rotateX(-16deg) rotateY(28deg); }
  .btn, .face-card, .plan, .pl-node { transition: none; }
  .face-card:hover, .plan:hover, .btn:hover, .pl-node:hover { transform: none; }
}

/* ---------- print (legal) ---------- */
@media print {
  body { background: #fff; color: #111; }
  body::before, .nav, .footer, .legal-toc, .legal-warn { display: none !important; }
  .legal-layout { display: block; padding: 0; }
  .legal-block { border: 0; padding: 14px 0; }
  .legal-block p, .legal-block li, .legal-block h2, .legal-block h3 { color: #111; }
  .legal-hero { padding: 0 0 12px; }
  .legal-hero p { color: #333; }
}

/* checkout top nav (egyszerű, oldalspecifikus) */
.checkout-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.checkout-nav a { padding: 8px 12px; border-radius: 9px; font-size: 14px; color: var(--muted); }
.checkout-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
@media (max-width: 560px) {
  .checkout-nav a { padding: 8px 9px; font-size: 13px; }
}

/* keskeny nézet: a jogi/checkout oldal felső navigációja ne törjön több sorba */
.checkout-nav a { white-space: nowrap; }
@media (max-width: 600px) {
  .checkout-nav a:not(:first-child) { display: none; }
  .legal-hero { padding-top: 40px; }
}

/* hero alatti fiók/regisztráció link */
.hero-signup { margin-top: 14px; color: var(--muted-2); font-size: 13px; }
.hero-signup a { color: var(--accent-soft); border-bottom: 1px solid rgba(167, 139, 250, .35); }
.hero-signup a:hover { border-color: var(--accent-soft); }


/* ==========================================================================
   ICON SYSTEM (v1.1) — Lucide, vendored offline (/icons/sprite.svg)
   One icon language, stroke 2, currentColor. Decorative icons are aria-hidden.
   ========================================================================== */
:root {
  --icon-sm: 16px;
  --icon: 18px;
  --icon-lg: 20px;
  --icon-xl: 24px;
}
.ic {
  display: inline-block;
  flex: none;
  vertical-align: -0.18em;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.face-chip {
  display: inline-block; flex: none; border-radius: 4px;
  background: var(--face, #8b98b3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  vertical-align: -.12em;
}
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.btn .ic { width: var(--icon-sm); height: var(--icon-sm); }
.btn.btn-sm .ic { width: 14px; height: 14px; }
.pill .ic { width: 13px; height: 13px; }
.steps-note .ic { width: var(--icon-lg); height: var(--icon-lg); }
.lead-list .ic { width: var(--icon-sm); height: var(--icon-sm); }
.p-feats .ic { width: var(--icon-sm); height: var(--icon-sm); }
.pricing-note .note .ic { width: var(--icon-sm); height: var(--icon-sm); }
.demo-banner { display: flex; gap: 12px; align-items: flex-start; }
.demo-banner .ic { width: var(--icon-lg); height: var(--icon-lg); color: var(--warn); margin-top: 2px; }
.faq-foot .ic, .footer .ic { width: var(--icon-sm); height: var(--icon-sm); }

/* ==========================================================================
   Blog / tudástár kártyák (v1.2 CMO) — a meglévő .card és .section tokenekre
   épül, csak a rácsot és a kártyán belüli tipográfiát adja hozzá.
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.blog-card {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-tag {
  align-self: flex-start;
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(13, 20, 36, .8);
}
.blog-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.blog-card h3 a { color: var(--text); text-decoration: none; }
.blog-card h3 a:hover { color: var(--accent-soft); }
.blog-card p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.66;
}
.blog-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--accent-soft);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
.blog-more:hover { color: var(--text); }
.blog-more .ic { width: 14px; height: 14px; }
.blog-foot {
  margin-top: 26px;
  color: var(--muted-2);
  font-size: 13.5px;
}
.blog-foot a { color: var(--muted); border-bottom: 1px solid var(--line); }
.blog-foot a:hover { color: var(--text); }

/* ==========================================================================
   Két lépéses (double opt-in) feliratkozás — consent checkbox + állapotok
   ========================================================================== */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.consent-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent-check span strong { color: var(--text); font-weight: 600; }
.consent-check.err span { color: #ff9d9d; }
.lead-status.info { color: var(--accent-soft); }
.lead-status a { color: var(--accent-soft); border-bottom: 1px solid var(--line); }
.lead-status a:hover { color: var(--text); }
.lead-status .dev-link { display: inline-block; margin-top: 6px; font-family: var(--mono); font-size: 11.5px; word-break: break-all; }
.lead-pending {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(13, 20, 36, .6);
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}
.lead-pending strong { color: var(--text); }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .blog-card { padding: 22px 20px; }
  .blog-foot { font-size: 13px; }
}
