/* =============================================================
   Vállalkozói Szintlépő Kérdőív — stíluslap
   Mély sötétkék + arany. Nincs külső függőség, nincs webfont:
   a lap file:// protokollról, hálózat nélkül is helyesen néz ki.
   ============================================================= */

/* --- 1. Designtokenek ------------------------------------- */
:root {
  /* felületek */
  --navy-950: #060B1A;
  --navy-900: #0A1128;
  --navy-800: #0E1734;
  --navy-750: #131E42;   /* kártyafelület — a diagram-ellenőrzés alapfelülete */
  --navy-700: #182552;
  --navy-600: #223066;
  --navy-500: #2E3E7E;

  /* arany: UI-akcent (szöveg, keret, gomb) */
  --gold: #E8B84B;
  --gold-soft: #F2D888;
  --gold-deep: #9C7414;

  /* arany: adatjelölő (pontszámsávok kitöltése) — validált érték,
     ne cseréld szemre, futtasd újra az ellenőrzőt, ha módosítod */
  --data-gold: #BC8C22;

  /* szöveg */
  --ink: #EAEFFA;
  --ink-2: #C3CCE6;
  --muted: #97A3C4;
  --on-gold: #0A1128;

  /* egyéb */
  --line: rgba(146, 164, 220, .18);
  --line-strong: rgba(146, 164, 220, .32);
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 18px 44px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.22, .78, .3, 1);
  --wrap: 720px;
}

/* --- 2. Alapok -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--navy-900);
  /* Arányos méret, hogy keskeny, magas kijelzőn se legyen éles pereme. */
  background-image:
    radial-gradient(135% 62% at 50% -6%, rgba(232, 184, 75, .11), transparent 70%),
    radial-gradient(110% 55% at 105% 103%, rgba(46, 62, 126, .42), transparent 68%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.018em; line-height: 1.2; }
p { margin: 0; }
strong { color: var(--ink); font-weight: 700; }
kbd {
  font: inherit; font-size: 12px;
  padding: 1px 6px; border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .05);
  color: var(--ink-2);
}

:where(button, a, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- 3. Fejléc, folyamatjelző, lábléc --------------------- */
.progress-rail {
  position: fixed; inset: 0 0 auto 0;
  height: 3px; z-index: 30;
  background: rgba(255, 255, 255, .06);
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transition: width .45s var(--ease);
}

.topbar {
  position: relative; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 18px clamp(16px, 4vw, 34px) 6px;
}
.brand {
  font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.counter {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-size: 13px; font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
}
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 8px;
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--muted);
  background: none; border: 1px solid transparent; border-radius: 999px;
  cursor: pointer;
  transition: color .18s, border-color .18s, background-color .18s;
}
.back-btn:hover { color: var(--ink); border-color: var(--line-strong); background: rgba(255, 255, 255, .04); }
.back-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.back-btn[hidden] { display: none; }

.hintbar {
  position: relative; z-index: 20;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  font-size: 12px; color: var(--muted);
}
.hint { display: inline-flex; align-items: center; gap: 5px; }
.hintbar[hidden] { display: none; }

/* --- 4. Színpad és képernyőváltás ------------------------- */
.stage {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(18px, 4vw, 40px) clamp(16px, 5vw, 34px) clamp(28px, 5vw, 48px);
  outline: none;
}
.stage:has(.screen--result) { align-items: flex-start; }

.screen { width: 100%; max-width: var(--wrap); }
.screen--result { max-width: 860px; }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.screen > * { animation: rise .5s var(--ease) both; }
.screen > *:nth-child(2) { animation-delay: .05s; }
.screen > *:nth-child(3) { animation-delay: .09s; }
.screen > *:nth-child(4) { animation-delay: .13s; }
.screen > *:nth-child(5) { animation-delay: .17s; }

/* --- 5. Nyitóképernyő ------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 20px; padding: 7px 15px;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold);
  background: rgba(232, 184, 75, .09);
  border: 1px solid rgba(232, 184, 75, .3);
  border-radius: 999px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex: none;
}

.intro-title {
  font-size: clamp(30px, 6.4vw, 50px);
  margin-bottom: 20px;
}
.intro-title em { font-style: normal; color: var(--gold); }

.intro-lead {
  font-size: clamp(16.5px, 2.2vw, 19px);
  color: var(--ink-2);
  max-width: 60ch;
  margin-bottom: 28px;
}

.intro-list { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 11px; }
.intro-list li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 15.5px; color: var(--ink-2);
}
.intro-list li::before {
  content: ""; flex: none; margin-top: 7px;
  width: 16px; height: 9px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg) translate(1px, -2px);
  border-radius: 1px;
}

/* --- 6. Gombok -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  font: inherit; font-size: 16.5px; font-weight: 700;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .16s var(--ease), box-shadow .2s, background-color .18s, border-color .18s, color .18s;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  color: var(--on-gold);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 10px 26px rgba(232, 184, 75, .22);
}
.btn--primary:hover { box-shadow: 0 14px 32px rgba(232, 184, 75, .34); }
.btn--primary:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }

.btn--ghost {
  color: var(--ink-2);
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-strong);
}
.btn--ghost:hover { color: var(--ink); border-color: var(--gold); background: rgba(232, 184, 75, .08); }

/* Körvonalas: egyértelműen kattintható, de nem versenyez a kitöltött
   arany gombbal. Az eredményoldalon csak egy tömör arany gomb lehet. */
.btn--outline {
  color: var(--gold);
  background: rgba(232, 184, 75, .06);
  border-color: rgba(232, 184, 75, .5);
}
.btn--outline:hover { border-color: var(--gold); background: rgba(232, 184, 75, .14); }

.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* --- 7. Kérdésképernyő ------------------------------------ */
.q-kicker {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold);
}
.q-kicker .sep { width: 22px; height: 1px; background: rgba(232, 184, 75, .45); }
.q-kicker .of { color: var(--muted); letter-spacing: .06em; }

.q-title {
  font-size: clamp(23px, 4.1vw, 33px);
  margin-bottom: 10px;
  max-width: 24ch;
}
.q-help { margin-bottom: 26px; font-size: 14.5px; color: var(--muted); }

.options { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.options li { animation: rise .42s var(--ease) both; }
.options li:nth-child(1) { animation-delay: .10s; }
.options li:nth-child(2) { animation-delay: .16s; }
.options li:nth-child(3) { animation-delay: .22s; }
.options li:nth-child(4) { animation-delay: .28s; }
.options li:nth-child(5) { animation-delay: .34s; }
.options li:nth-child(6) { animation-delay: .40s; }
.options li:nth-child(7) { animation-delay: .46s; }
.options li:nth-child(8) { animation-delay: .52s; }

.opt {
  position: relative;
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 15px 48px 15px 15px;
  font: inherit; font-size: 16px; text-align: left; color: var(--ink);
  background: rgba(255, 255, 255, .035);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .16s, background-color .16s, transform .16s var(--ease);
}
.opt:hover { border-color: rgba(232, 184, 75, .55); background: rgba(232, 184, 75, .07); transform: translateX(3px); }

.opt .key {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  transition: background-color .16s, color .16s, border-color .16s;
}
.opt:hover .key { color: var(--gold); border-color: rgba(232, 184, 75, .5); }

.opt .tick {
  position: absolute; right: 16px; top: 50%;
  width: 18px; height: 12px; margin-top: -8px;
  border-left: 2.4px solid var(--gold); border-bottom: 2.4px solid var(--gold);
  transform: rotate(-45deg) scale(.5);
  opacity: 0; border-radius: 1px;
  transition: opacity .18s, transform .22s var(--ease);
}

.opt[aria-checked="true"], .opt[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(232, 184, 75, .13);
}
.opt[aria-checked="true"] .key, .opt[aria-pressed="true"] .key {
  color: var(--on-gold); background: var(--gold); border-color: var(--gold);
}
.opt[aria-checked="true"] .tick, .opt[aria-pressed="true"] .tick {
  opacity: 1; transform: rotate(-45deg) scale(1);
}

.q-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.q-actions .picked { font-size: 13.5px; color: var(--muted); }

/* --- 8. Eredmény: fejléc és szint ------------------------- */
.result-head { text-align: center; margin-bottom: 36px; }
.result-head .eyebrow { margin-bottom: 16px; }

.level-name {
  font-size: clamp(30px, 6vw, 46px);
  color: var(--gold);
  margin-bottom: 10px;
}
.level-motto {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--ink);
  margin-bottom: 16px;
}
.level-desc {
  font-size: 16px; color: var(--ink-2);
  max-width: 62ch; margin: 0 auto;
}

.total-ring { display: flex; justify-content: center; margin-bottom: 22px; }
.total-ring svg { width: 132px; height: 132px; }
.total-ring .track { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 9; }
.total-ring .value {
  fill: none; stroke: var(--data-gold); stroke-width: 9; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 50% 50%;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.total-ring .num { fill: var(--ink); font-size: 30px; font-weight: 700; text-anchor: middle; }
.total-ring .cap { fill: var(--muted); font-size: 10.5px; letter-spacing: .12em; text-anchor: middle; }

/* --- 9. Eredmény: pontszámsávok ---------------------------
   Egy mérőszám négy kategórián: egyetlen hue (validált adat-arany),
   közvetlen felirat minden sávon, nincs jelmagyarázat. A leggyengébb
   kategóriát nem szín, hanem ikonos szöveges jelölés emeli ki. */
.panel {
  background: var(--navy-750);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.4vw, 30px);
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.panel-title {
  font-size: 13px; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.meters { display: grid; gap: 20px; }
.meter-top {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 8px;
}
.meter-label { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.meter-value {
  margin-left: auto;
  font-size: 15px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.meter-value span { color: var(--muted); font-weight: 600; font-size: 13px; }

.meter-track {
  height: 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .075);
  overflow: hidden;
}
.meter-fill {
  height: 100%; width: 0%;
  background: var(--data-gold);
  border-radius: 999px;
  transition: width .95s var(--ease);
}

.meter-flag {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--gold);
}
.meter-flag svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* --- 10. Eredmény: gyors győzelmek ------------------------ */
.panel--focus { border-color: rgba(232, 184, 75, .34); background: linear-gradient(180deg, rgba(232, 184, 75, .07), rgba(19, 30, 66, .9)); }
.quickwins { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: qw; }
.quickwins li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 16px; color: var(--ink);
}
.quickwins li::before {
  counter-increment: qw; content: counter(qw);
  flex: none; width: 27px; height: 27px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  color: var(--on-gold); background: var(--gold);
  border-radius: 50%;
}
.quickwins .qw-cat { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* --- 11. Eredmény: tanácskártyák -------------------------- */
.cat-block { margin-bottom: 20px; }
.cat-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.cat-head h3 { font-size: 19px; }
.cat-head .cat-score {
  margin-left: auto;
  font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy-800);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .18s;
}
.card:hover { border-color: var(--line-strong); }
.card.is-open { border-color: rgba(232, 184, 75, .45); }

.card-btn {
  width: 100%;
  display: flex; align-items: flex-start; gap: 13px;
  padding: 16px 17px;
  font: inherit; text-align: left; color: var(--ink);
  background: none; border: 0; cursor: pointer;
}
.card-num {
  flex: none; width: 26px; height: 26px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(232, 184, 75, .42);
  border-radius: 7px;
}
.card-title { flex: 1; font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.card-chev {
  flex: none; margin-top: 4px;
  width: 16px; height: 16px;
  fill: none; stroke: var(--muted); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .24s var(--ease), stroke .18s;
}
.card.is-open .card-chev { transform: rotate(180deg); stroke: var(--gold); }

.card-body { padding: 0 17px 18px 56px; animation: fadeIn .3s var(--ease) both; }
.card-body[hidden] { display: none; }
.card-why {
  font-size: 15px; color: var(--ink-2);
  padding-left: 13px; border-left: 2px solid rgba(232, 184, 75, .4);
  margin-bottom: 16px;
}
.steps-title {
  font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 9px;
}
.steps { list-style: none; margin: 0 0 15px; padding: 0; display: grid; gap: 9px; counter-reset: st; }
.steps li {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 15.5px; color: var(--ink);
}
.steps li::before {
  counter-increment: st; content: counter(st) ".";
  flex: none; min-width: 17px;
  font-weight: 700; color: var(--gold);
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px;
  font-size: 12px; font-weight: 600;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.badge b { color: var(--gold); font-weight: 700; }

/* --- 12. Eredmény: CTA és lezárás ------------------------- */
.cta {
  margin: 30px 0 20px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 184, 75, .35);
  background:
    radial-gradient(700px 300px at 12% -30%, rgba(232, 184, 75, .16), transparent 65%),
    var(--navy-750);
  box-shadow: var(--shadow);
}
.cta h3 { font-size: clamp(24px, 4vw, 32px); color: var(--gold); margin-bottom: 12px; }
.cta p { font-size: 16px; color: var(--ink-2); max-width: 60ch; margin-bottom: 18px; }
.cta-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.cta-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: var(--ink); }
.cta-list li::before {
  content: ""; flex: none; margin-top: 7px;
  width: 15px; height: 8px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg) translate(1px, -2px);
}
.cta-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

.result-foot {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: center;
  padding: 10px 0 4px;
}
.result-foot .credit { width: 100%; text-align: center; font-size: 13px; color: var(--muted); }
.result-foot .credit a { color: var(--ink-2); }

.save-note {
  width: 100%; text-align: center;
  font-size: 13px; color: var(--muted);
  min-height: 1.2em;
}
.save-note:empty { min-height: 0; }
.save-note.is-ok  { color: var(--gold); }
.save-note.is-bad { color: #FFB4A8; max-width: 44ch; margin: 0 auto; }

/* --- 13. Reszponzív --------------------------------------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .stage { align-items: flex-start; }
  .opt { padding: 14px 42px 14px 13px; font-size: 15.5px; }
  .opt .key { width: 27px; height: 27px; }
  .card-body { padding-left: 17px; }
  .hintbar { display: none; }
  .btn { width: 100%; }
  .q-actions .btn { width: auto; flex: 1 1 auto; }
}

/* --- 14. Mozgásérzékenység és nyomtatás ------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  body { background: #fff; color: #111; }
  .topbar, .hintbar, .progress-rail, .result-foot, .card-chev { display: none !important; }
  .panel, .card, .cta { background: #fff; border-color: #ccc; box-shadow: none; }
  .level-name, .cta h3, .card-num, .steps li::before { color: #7a5c00; }
  .card-title, .steps li, .quickwins li, .meter-label, .meter-value { color: #111; }
  .card-body[hidden] { display: block !important; }
  .meter-fill { background: #7a5c00; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
