/* MI Labor - landing stílus
   Nyelv: kézzel készített labor-jegyzetfüzet. Papír + tinta + egyetlen mélyzöld
   akcent, éles sarkok, látható tinta-keretek, kemény offset-árnyék ("papírkivágás"),
   kézírásos margó-jegyzetek (Caveat). Semmi pill, semmi glow, semmi blur. */

:root {
  --paper: #f3f2ec;
  --surface: #fbfaf5;
  --ink: #1b1d22;
  --muted: #4f545d;
  --faint: #62676f;
  --accent: #1e3f66;
  --accent-deep: #16304f;
  --accent-soft: #e2e9f2;
  --accent-ink: #10233c;
  --accent-hi: #8fb9e3;
  --line: #22242b;
  --hairline: rgba(27, 29, 34, 0.14);
  --shadow-hard: 5px 5px 0 rgba(27, 29, 34, 0.13);
  --r: 2px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  --font-hand: "Caveat", "Segoe Script", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigáció ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1.5px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  color: var(--accent);
  display: grid;
  place-items: center;
}

.brand-mark svg { width: 100%; height: 100%; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 16px;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.nav-links a:hover { color: var(--ink); }

.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }

/* ---------- Gombok ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  border-radius: var(--r);
  padding: 12px 24px;
  border: 1.5px solid var(--line);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn:active { transform: translate(1px, 1px); box-shadow: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 3px 3px 0 var(--line);
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--line);
}

.btn-primary .btn-ico {
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease);
}

.btn-primary:hover .btn-ico { transform: translate(2px, -1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover { background: var(--surface); box-shadow: 3px 3px 0 rgba(27, 29, 34, 0.18); transform: translate(-1px, -1px); }

.btn-sm { padding: 8px 16px; font-size: 16px; box-shadow: 2px 2px 0 var(--line); }

/* ---------- Szekció-alap ---------- */

section { padding: 96px 0; }

.sec-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  line-height: 1.15;
  max-width: 20ch;
  text-wrap: balance;
}

.sec-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  max-width: 58ch;
}

/* Kézírásos margó-jegyzet (Caveat) */

.hand-note {
  font-family: var(--font-hand);
  font-size: 23px;
  line-height: 1.25;
  color: var(--accent);
  transform: rotate(-2.5deg);
}

.hand-note svg { display: inline-block; vertical-align: middle; }

/* ---------- Hero ---------- */

.hero { padding: 76px 0 92px; position: relative; }

/* milliméterpapír-rács: egyenletes, halvány zöld tinta - jegyzetfüzet-lap */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 63, 102, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 63, 102, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 85% 95% at 55% 40%, #000 40%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 95% at 55% 40%, #000 40%, transparent 78%);
}

.hero .wrap { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  line-height: 1.08;
  perspective: 600px;
  text-wrap: balance;
}

.hw {
  display: inline-block;
  transform-origin: 50% 80%;
  animation: hwIn 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: calc(0.08s + var(--i, 0) * 0.075s);
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

@keyframes hwIn {
  from { opacity: 0; transform: translateY(0.7em) rotateX(-50deg) scale(0.92); }
  to { opacity: 1; transform: none; }
}

/* kiemelt szó: zöld tinta + kézzel húzott aláhúzás */
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  line-height: 1.1;
  padding-bottom: 0.22em;
  margin-bottom: -0.14em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8 C 22 3.5, 38 9.5, 58 6 S 96 4.5, 117 7.5' fill='none' stroke='%231e3f66' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") bottom left / 100% 0.16em no-repeat;
}

.hero-sub {
  margin-top: 22px;
  font-size: 19px;
  color: var(--muted);
  max-width: 46ch;
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* kézírásos jegyzet a demó-panel fölött, nyíllal */
.hero-scribble {
  margin: 0 8px 10px auto;
  max-width: 300px;
  text-align: right;
}

/* Hero demó-panel: egyetlen tinta-keret + papírkivágás-árnyék */

.stat-shell {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-hard);
}

.stat-core { padding: 28px 26px; }

.stat-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 10px;
  font-size: 16.5px;
  color: var(--ink);
  font-weight: 500;
}

.stat-src {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(27, 29, 34, 0.3);
  font-size: 14.5px;
  color: var(--faint);
}

.stat-src a { color: var(--faint); }

.stat-chart { margin-top: 22px; }

.stat-chart svg { width: 100%; height: auto; display: block; }

/* Hero folyamat-panel: 1x építés → mindennapi futás */

.flow { display: grid; gap: 10px; }

.flow-step {
  border: 1px solid rgba(27, 29, 34, 0.35);
  border-radius: var(--r);
  padding: 16px 18px;
  background: var(--paper);
}

.flow-step.flow-hot {
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
}

.flow-tag {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
}

.flow-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-top: 2px;
}

.flow-desc { font-size: 15.5px; color: var(--muted); margin-top: 2px; }

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--accent);
  margin: -2px 0;
}

.flow-arrow svg { animation: arrowNudge 2.2s ease-in-out infinite; }

@keyframes arrowNudge {
  0%, 100% { transform: translateY(-1px); }
  50% { transform: translateY(3px); }
}

/* Élő mini-demó a hero-panelben: gépelődő kérés + futó eszköz */

.flow-prompt {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: var(--r);
  background: rgba(27, 29, 34, 0.05);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  min-height: 42px;
  line-height: 1.55;
}

.fp-label { font-weight: 700; color: var(--accent); margin-right: 2px; }

.fp-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: caretBlink 1s steps(1) infinite;
}

@keyframes caretBlink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

.flow-run {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid rgba(30, 63, 102, 0.45);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
  min-height: 42px;
}

.fr-text { transition: opacity 0.3s var(--ease); }

.fr-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  background: var(--accent);
}

.fr-dot.busy { animation: dotPulse 0.9s ease-in-out infinite; }

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.55); opacity: 0.45; }
}

/* Szemlélet-összehasonlítás: használat vs építés */

.vs-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.vs-col {
  border-radius: var(--r);
  padding: 30px 28px;
}

.vs-them {
  background: var(--paper);
  border: 1px solid rgba(27, 29, 34, 0.35);
}

/* "zöld tábla": sötét labor-zöld panel krétafehér szöveggel */
.vs-us {
  background: var(--accent-ink);
  color: #e9eff5;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-hard);
}

.vs-col h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.vs-them h3 { color: var(--muted); }

.vs-col ul { list-style: none; margin-top: 18px; display: grid; gap: 13px; }

.vs-col li { padding-left: 24px; position: relative; font-size: 16.5px; }

.vs-them li { color: var(--muted); }

.vs-us li { color: rgba(233, 239, 245, 0.85); }

.vs-us li b, .vs-us li strong { color: #fff; }

.vs-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
}

.vs-them li::before {
  border: 2px solid rgba(27, 29, 34, 0.3);
  width: 8px;
  height: 8px;
}

.vs-us li::before { background: var(--accent-hi); }

/* ---------- Kalkulátor ---------- */

.calc { background: var(--surface); border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }

.calc-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  align-items: start;
}

.task-list { display: grid; gap: 10px; }

.task-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid rgba(27, 29, 34, 0.3);
  border-radius: var(--r);
  cursor: pointer;
  background: var(--paper);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  user-select: none;
}

.task-item:hover { border-color: var(--accent); }

.task-item input { position: absolute; opacity: 0; pointer-events: none; }

.task-check {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  border-radius: var(--r);
  border: 1.5px solid rgba(27, 29, 34, 0.45);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.task-check svg { width: 12px; height: 12px; opacity: 0; transition: opacity 0.2s var(--ease); }

.task-item.on { background: var(--accent-soft); border: 1.5px solid var(--accent); padding: 14.5px 17.5px; }

.task-item.on .task-check { background: var(--accent); border-color: var(--accent); }

.task-item.on .task-check svg { opacity: 1; animation: checkPop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes checkPop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.task-name { font-weight: 600; font-size: 16.5px; }

.task-hours { margin-left: auto; color: var(--muted); font-size: 14.5px; white-space: nowrap; }

.calc-panel {
  position: sticky;
  top: 92px;
}

.calc-people { margin-top: 18px; }

.calc-people label { font-size: 16px; font-weight: 600; display: block; margin-bottom: 8px; }

.calc-people input[type="range"] { width: 100%; accent-color: var(--accent); }

.calc-people-val { font-variant-numeric: tabular-nums; color: var(--accent); }

.calc-result {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.calc-result-sub { color: var(--muted); font-size: 16.5px; margin-top: 8px; }

.calc-note { margin-top: 18px; font-size: 14.5px; color: var(--faint); }

/* ---------- Esettanulmányok ---------- */

.cases-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.case-card {
  border: 1px solid rgba(27, 29, 34, 0.35);
  border-radius: var(--r);
  background: var(--surface);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.case-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard); }

.case-a { grid-column: span 7; background: var(--accent-ink); color: #e9eff5; border: 1.5px solid var(--line); }

.case-a .case-num { color: var(--accent-hi); }

.case-a .case-src, .case-a .case-body { color: rgba(233, 239, 245, 0.78); }

.case-b { grid-column: span 5; }

.case-c { grid-column: span 5; background: var(--accent-soft); border-color: rgba(30, 63, 102, 0.4); }

.case-d { grid-column: span 7; }

.case-tag { font-size: 15.5px; font-weight: 600; color: inherit; opacity: 0.75; }

.case-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-top: 14px;
  line-height: 1.1;
}

.case-body { margin-top: 12px; color: var(--muted); font-size: 16.5px; flex: 1; }

.case-src { margin-top: 18px; font-family: var(--font-mono); font-size: 14px; color: var(--faint); }

.case-src a { color: inherit; }

/* ---------- Folyamat ---------- */

.proc {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.proc-steps { display: grid; gap: 10px; }

.pstep {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 16px 18px;
  text-align: left;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.pstep.on {
  background: var(--surface);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-hard);
  padding: 15.5px 17.5px;
}

.pstep-dot {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1.5px solid rgba(27, 29, 34, 0.4);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 700;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.pstep.on .pstep-dot { background: var(--accent); border-color: var(--accent); color: #fff; }

.pstep-body { display: block; min-width: 0; }

.pstep-h {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pstep-p {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  opacity: 0.6;
  transition: opacity 0.3s var(--ease);
}

.pstep.on .pstep-p { opacity: 1; }

.pstep-track {
  display: block;
  margin-top: 12px;
  height: 3px;
  background: var(--hairline);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.pstep.on .pstep-track { opacity: 1; }

.pstep-bar { display: block; height: 100%; width: 0; background: var(--accent); }

@keyframes psProgress { to { width: 100%; } }

/* Jobb oldali szemléltető színpad */

.proc-core { padding: 22px; }

.ps-scene { display: none; }

.ps-scene.on { display: block; animation: psSceneIn 0.35s var(--ease) both; }

@keyframes psSceneIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.ps-win {
  border: 1px solid rgba(27, 29, 34, 0.35);
  border-radius: var(--r);
  background: var(--paper);
  overflow: hidden;
}

.ps-winbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-bottom: 1px solid rgba(27, 29, 34, 0.35);
  background: var(--surface);
}

.ps-lamp { width: 8px; height: 8px; background: var(--accent); }

.ps-wintitle { font-family: var(--font-mono); font-size: 14px; color: var(--faint); }

.ps-body { padding: 18px; display: grid; gap: 12px; min-height: 236px; align-content: start; }

@keyframes psIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes psPop {
  from { opacity: 0; transform: scale(0.6); }
  60% { transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}

.ps-check {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15.5px;
  color: var(--ink);
  animation: psIn 0.45s var(--ease) both;
  animation-delay: var(--d, 0s);
}

.ps-box {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  border-radius: var(--r);
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
}

.ps-box svg {
  width: 12px;
  height: 12px;
  animation: psPop 0.35s var(--ease) both;
  animation-delay: calc(var(--d, 0s) + 0.3s);
}

.ps-note {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--faint);
  animation: psIn 0.45s var(--ease) both;
  animation-delay: var(--d, 0s);
}

.ps-ok { color: var(--accent); font-weight: 600; }

.ps-cand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(27, 29, 34, 0.3);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 15.5px;
  color: var(--ink);
  animation: psCandIn 2.1s var(--ease) both;
  animation-delay: var(--d, 0s);
}

@keyframes psCandIn {
  from { opacity: 0; transform: translateY(8px); }
  18% { opacity: 1; transform: none; }
  72% { opacity: 1; }
  to { opacity: 0.5; }
}

.ps-pick {
  border-color: var(--accent);
  background: var(--accent-soft);
  animation-name: psPickIn;
}

@keyframes psPickIn {
  from { opacity: 0; transform: translateY(8px); border-color: rgba(27, 29, 34, 0.3); background: var(--surface); }
  18% { opacity: 1; transform: none; }
  72% { border-color: rgba(27, 29, 34, 0.3); background: var(--surface); }
  to { opacity: 1; border-color: var(--accent); background: var(--accent-soft); }
}

.ps-tag {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  animation: psPop 0.4s var(--ease) both;
  animation-delay: calc(var(--d, 0s) + 1.85s);
}

.ps-typeline {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid rgba(27, 29, 34, 0.3);
  border-radius: var(--r);
  padding: 11px 13px;
  white-space: nowrap;
  overflow: hidden;
}

.ps-typelabel { color: var(--accent); font-weight: 600; }

.ps-type {
  display: inline-block;
  vertical-align: bottom;
  max-width: 30ch;
  overflow: hidden;
  white-space: nowrap;
  animation: psType 1.35s steps(30, end) 0.35s both;
}

@keyframes psType { from { max-width: 0; } }

.ps-caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: caretBlink 0.9s steps(1) infinite;
}

.ps-blocks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }

.ps-block {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 8px 11px;
  border: 1px solid rgba(27, 29, 34, 0.3);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  animation: psPop 0.4s var(--ease) both;
  animation-delay: var(--d, 0s);
}

.ps-block-hot { background: var(--accent); border-color: var(--accent); color: #fff; }

.ps-badge {
  justify-self: start;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--r);
  border: 1px solid rgba(30, 63, 102, 0.45);
  background: var(--accent-soft);
  color: var(--accent-deep);
  animation: psPop 0.4s var(--ease) both;
  animation-delay: var(--d, 0s);
}

/* ---------- Kinek szól ---------- */

.fit { background: var(--surface); border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }

.fit-cols {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.fit-col { padding: 0 40px; }

.fit-col:first-child { padding-left: 0; border-right: 1px dashed rgba(27, 29, 34, 0.3); }

.fit-col:last-child { padding-right: 0; }

.fit-col h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fit-col h3 .fit-ico { width: 26px; height: 26px; border-radius: var(--r); display: grid; place-items: center; }

.fit-yes .fit-ico { background: var(--accent-soft); border: 1px solid rgba(30, 63, 102, 0.45); color: var(--accent); }

.fit-no .fit-ico { background: rgba(27, 29, 34, 0.06); border: 1px solid rgba(27, 29, 34, 0.25); color: var(--muted); }

.fit-col ul { list-style: none; margin-top: 18px; display: grid; gap: 12px; }

.fit-col li { padding-left: 22px; position: relative; color: var(--muted); font-size: 16.5px; }

.fit-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: currentColor;
  opacity: 0.5;
}

/* ---------- Mit visztek haza (bento) ---------- */

.takeaway-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.take-card {
  border: 1px solid rgba(27, 29, 34, 0.35);
  border-radius: var(--r);
  padding: 28px 26px;
  background: var(--surface);
}

.take-hero {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
  background: var(--accent-ink);
  color: #e9eff5;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-hard);
}

.take-card.take-hero p { color: rgba(233, 239, 245, 0.85); }

.take-hero .take-visual {
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(143, 185, 227, 0.4);
  padding: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
}

.take-card h3 { font-family: var(--font-display); font-size: 19.5px; font-weight: 700; letter-spacing: -0.01em; }

.take-card p { margin-top: 8px; color: var(--muted); font-size: 16px; }

.take-ico {
  width: 38px;
  height: 38px;
  border-radius: var(--r);
  background: var(--accent-soft);
  border: 1px solid rgba(30, 63, 102, 0.45);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.take-ico svg { width: 19px; height: 19px; }

/* ---------- Előadó ---------- */

.trainer-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
}

.trainer-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  background: var(--accent-soft);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-hard);
  display: grid;
  place-items: center;
  color: var(--accent);
  overflow: hidden;
}

.trainer-photo img { width: 100%; height: 100%; object-fit: cover; }

.trainer-q {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.trainer-bio { margin-top: 18px; color: var(--muted); font-size: 17.5px; max-width: 58ch; }

.trainer-name { margin-top: 20px; font-weight: 600; }

.trainer-role { color: var(--faint); font-size: 16px; }

/* ---------- GYIK ---------- */

.faq { background: var(--surface); border-top: 1.5px solid var(--line); }

.faq-list { margin-top: 40px; max-width: 780px; }

.faq-item { border-bottom: 1px solid rgba(27, 29, 34, 0.25); }

.faq-item:first-child { border-top: 1px solid rgba(27, 29, 34, 0.25); }

.faq-q {
  width: 100%;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 18px;
  text-align: left;
  padding: 20px 44px 20px 0;
  cursor: pointer;
  position: relative;
  color: var(--ink);
}

.faq-q::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.35s var(--ease);
}

.faq-item.open .faq-q::after { transform: translateY(-30%) rotate(225deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}

.faq-a p { padding: 0 0 22px; color: var(--muted); font-size: 16.5px; max-width: 65ch; }

/* ---------- Ajánlatkérés ---------- */

.offer { padding-bottom: 110px; }

.offer-shell {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-hard);
  max-width: 860px;
  margin: 44px auto 0;
}

.offer-core { padding: 42px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field { display: grid; gap: 7px; }

.field-full { grid-column: span 2; }

.field label { font-size: 15.5px; font-weight: 600; }

.field input, .field select, .field textarea {
  font: inherit;
  font-size: 16.5px;
  padding: 12px 14px;
  border: 1.5px solid rgba(27, 29, 34, 0.4);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  width: 100%;
}

.field textarea { min-height: 110px; resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 2px 2px 0 rgba(30, 63, 102, 0.25);
}

.field .hint { font-size: 14.5px; color: var(--faint); }

.field .err { font-size: 14.5px; color: #b4231f; display: none; }

.field.invalid input, .field.invalid textarea { border-color: #b4231f; }

.field.invalid .err { display: block; }

.daypart-row { display: flex; gap: 10px; flex-wrap: wrap; }

.daypart {
  position: relative;
  padding: 10px 18px;
  border-radius: var(--r);
  border: 1.5px solid rgba(27, 29, 34, 0.4);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  background: var(--paper);
  transition: all 0.25s var(--ease);
  user-select: none;
}

.daypart input { position: absolute; opacity: 0; pointer-events: none; }

.daypart.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.form-actions { margin-top: 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.form-note { font-size: 14.5px; color: var(--faint); }

/* ---------- Lábléc ---------- */

.footer {
  border-top: 1.5px solid var(--line);
  padding: 36px 0;
  color: var(--faint);
  font-size: 15.5px;
}

.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Reveal animáció ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- Popup (appConfirm/appAlert) ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(27, 29, 34, 0.5);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.24s var(--ease);
}

.modal-backdrop.in { opacity: 1; }

.modal-box {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-hard);
  padding: 32px;
  max-width: 420px;
  width: calc(100% - 48px);
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.24s var(--ease);
}

.modal-backdrop.in .modal-box { transform: scale(1); }

.modal-box h3 { font-family: var(--font-display); font-size: 21px; margin-bottom: 10px; }

.modal-box p { color: var(--muted); font-size: 16.5px; margin-bottom: 22px; }

/* ---------- Adatbiztonság-blokk (zöld tábla, a fő differenciátor) ---------- */

.safety {
  background: var(--accent-ink);
  color: #e9eff5;
  position: relative;
  overflow: hidden;
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
}

/* halvány kréta-rács a táblán - összeköti a hero jegyzetlapjával */
.safety::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 185, 227, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 185, 227, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 20%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 20%, #000 25%, transparent 75%);
}

.safety .wrap { position: relative; }

.safety-title { color: #fff; max-width: 24ch; }

.safety-lead { color: rgba(233, 239, 245, 0.78); }

.safety-lead strong { color: var(--accent-hi); }

.safety-steps {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.safety-step {
  border: 1px dashed rgba(143, 185, 227, 0.4);
  border-radius: var(--r);
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.03);
}

.ss-num {
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  background: var(--accent-hi);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.safety-step h3 {
  font-family: var(--font-display);
  font-size: 19.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.safety-step p { margin-top: 8px; font-size: 16px; color: rgba(233, 239, 245, 0.75); }

.safety-close {
  margin-top: 36px;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 26px;
  color: var(--accent-hi);
  transform: rotate(-1.5deg);
  display: inline-block;
}

/* ---------- Mobil ---------- */

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
  .hero-grid, .calc-grid, .trainer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-scribble { display: none; }
  .calc-panel { position: static; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-a, .case-b, .case-c, .case-d { grid-column: span 1; }
  .takeaway-grid { grid-template-columns: 1fr; }
  .take-hero { grid-column: span 1; grid-template-columns: 1fr; }
  .fit-cols { grid-template-columns: 1fr; }
  .fit-col { padding: 0; }
  .fit-col:first-child { border-right: 0; border-bottom: 1px dashed rgba(27, 29, 34, 0.3); padding-bottom: 32px; }
  .fit-col:last-child { padding-top: 32px; }
  .vs-grid { grid-template-columns: 1fr; }
  .safety-steps { grid-template-columns: 1fr; }
  .proc { grid-template-columns: 1fr; gap: 24px; }
  .pstep { padding: 14px 14px; }
  .pstep.on { padding: 12.5px 12.5px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: span 1; }
  .offer-core { padding: 28px 22px; }
  .nav-links { display: none; }
  .trainer-photo { max-width: 320px; }
}

/* Flatpickr a saját kék helyett a zöld tintát kapja */
.flatpickr-calendar { border-radius: var(--r); box-shadow: var(--shadow-hard); border: 1.5px solid var(--line); }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.selected:focus { background: var(--accent); border-color: var(--accent); }
.flatpickr-day.today { border-color: var(--accent); }
.flatpickr-day.today:hover, .flatpickr-day.today:focus { background: var(--accent); border-color: var(--accent); color: #fff; }
.flatpickr-day:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
