/* ============================================
   TEHO AI Workshop — by transformio
   ============================================ */

:root {
  /* Brand palette — TEHO (tmavá lesná zelená + eko zelená + petrolejová) */
  --midnight: #161d18;     /* primary dark bg (lesná zeleno-čierna) */
  --midnight-2: #1a221c;
  --midnight-3: #1f2922;   /* dark panel/card */
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --panel-elevated: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-muted: #c3cfc6;
  --text-dim: rgba(195, 207, 198, 0.55);

  /* TEHO light-section tokens (for white/light-green sections) */
  --ok-white: #ffffff;
  --ok-offwhite: #fafaf8;
  --ok-lavender: #edf5e7;
  --ok-ink: #1c2420;
  --ok-muted: #4d5a52;
  --ok-border-light: #d2ddd4;

  --turquoise: #61a229;    /* TEHO eko zelená — primárny akcent */
  --turquoise-glow: rgba(97, 162, 41, 0.45);
  --pink: #178faa;         /* TEHO petrolejová — gradient end + CTA */
  --pink-glow: rgba(23, 143, 170, 0.42);
  --yellow: #8fd14f;       /* svetlá jarná zelená — čísla/zvýraznenia */
  --purple: #178faa;
  --sky: #2fa3c0;
  --orchard: #4e8221;      /* tmavšia eko zelená */

  --gradient: linear-gradient(135deg, #61a229 0%, #178faa 100%);
  --gradient-soft: linear-gradient(135deg, rgba(97, 162, 41, 0.18), rgba(23, 143, 170, 0.18));
  --gradient-line: linear-gradient(90deg, transparent 0%, #61a229 30%, #178faa 70%, transparent 100%);
  --gradient-alt: linear-gradient(135deg, #4e8221 0%, #8fd14f 100%);

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 14px 44px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 80px rgba(97, 162, 41, 0.18);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container-w: 1240px;
  --module-sidebar-w: 280px;
  --topbar-h: 84px;
}

/* ============================================
   Reset
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Roboto Condensed", "Rajdhani", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  background: var(--midnight);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 85% 8%, rgba(97, 162, 41, 0.18), transparent 45%),
    radial-gradient(circle at 8% 85%, rgba(23, 143, 170, 0.13), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(143, 209, 79, 0.06), transparent 70%);
}

#app {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Rajdhani", "Roboto Condensed", system-ui, sans-serif;
  letter-spacing: 0.01em;
}

.view[hidden] {
  display: none !important;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 300;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 62ch;
}

.muted {
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
}

.section {
  position: relative;
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(85%, 800px);
  height: 1px;
  background: var(--gradient-line);
  opacity: 0.6;
}

.section-heading {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  max-width: 720px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  max-width: none;
}

.section-heading.split p {
  max-width: 48ch;
}

/* ============================================
   Okoboro light / lavender sections (alternating rhythm like okoboro.com)
   ============================================ */
.section--light { background: var(--ok-white); }
.section--lavender { background: var(--ok-lavender); }
.section--light, .section--lavender { color: var(--ok-ink); }

.section--light + .section::before,
.section--lavender + .section::before { opacity: 0.2; }

.section--light h1, .section--light h2, .section--light h3, .section--light h4,
.section--lavender h1, .section--lavender h2, .section--lavender h3, .section--lavender h4 { color: var(--ok-ink); }
.section--light p, .section--light .lead, .section--light .mode-list li,
.section--lavender p, .section--lavender .lead, .section--lavender .mode-list li { color: var(--ok-muted); }
.section--light .eyebrow, .section--lavender .eyebrow { color: var(--turquoise); }

.section--light .mode-card, .section--light .module-card, .section--light .usecase-panel, .section--light .test-cta-card,
.section--lavender .mode-card, .section--lavender .module-card, .section--lavender .usecase-panel, .section--lavender .test-cta-card {
  background: var(--ok-white);
  border: 1px solid var(--ok-border-light);
  box-shadow: 0 12px 34px rgba(22, 29, 24, 0.07);
}
.section--light .mode-card h3, .section--light .module-card h3,
.section--lavender .mode-card h3, .section--lavender .module-card h3 { color: var(--ok-ink); }
.section--light .mode-card p, .section--light .module-card p, .section--light .module-card .focus,
.section--lavender .mode-card p, .section--lavender .module-card p, .section--lavender .module-card .focus { color: var(--ok-muted); }
.section--light .module-card .module-foot span,
.section--lavender .module-card .module-foot span { color: var(--ok-muted); }

.section--light .button.primary, .section--lavender .button.primary {
  background: var(--turquoise);
  color: #fff;
  box-shadow: 0 14px 30px rgba(97, 162, 41, 0.30);
}
.section--light .button.ghost, .section--lavender .button.ghost {
  background: #fff;
  color: var(--ok-ink);
  border-color: var(--ok-border-light);
}
.section--light .button.ghost:hover, .section--lavender .button.ghost:hover { border-color: var(--turquoise); }

/* Moduly zoskupené po dňoch (Deň 1 / Deň 2) */
#module-grid { display: block; }
.module-day { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.module-day:last-child { margin-bottom: 0; }
.module-day-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.module-day-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 10px;
  background: var(--turquoise);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.module-day-title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 0.02em;
}
.module-day-sub {
  font-size: 0.9rem;
  margin-top: 0.15rem;
}
.module-day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}

/* Logá ekosystémov (OpenAI / Anthropic / Gemini / Microsoft) */
.ecosystem-logo-img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  display: block;
}
.matrix-logo-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}
.matrix-vendor-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* Segmentové karty v M1 "Kde to pomôže" (klikateľné → pop-okno) */
.segment-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 1.5rem;
}
.segment-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  text-align: left;
  padding: 1.1rem 1.2rem 2rem;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  font-family: inherit;
  color: var(--text);
  position: relative;
}
.segment-card:hover {
  border-color: var(--seg-color);
  background: var(--panel-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.segment-card-icon { font-size: 1.55rem; line-height: 1; flex-shrink: 0; }
.segment-card-body { display: flex; flex-direction: column; gap: 0.1rem; }
.segment-card-body strong { font-size: 1.02rem; }
.segment-card-body small { color: var(--seg-color); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.03em; }
.segment-card-desc { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.35rem; line-height: 1.4; }
.segment-card-cta {
  position: absolute;
  right: 1.1rem;
  bottom: 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--seg-color);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.segment-card:hover .segment-card-cta { opacity: 1; }

/* Agenda zoskupená po dňoch */
.agenda-day { margin-bottom: 1.6rem; }
.agenda-day:last-child { margin-bottom: 0; }
.agenda-day-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.9rem; }
.agenda-day-badge {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 9px;
  background: var(--turquoise);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
}
.agenda-day-head strong { font-size: 1.05rem; letter-spacing: 0.02em; }
.agenda-day-head p { font-size: 0.85rem; margin-top: 0.1rem; }
.agenda-day-items { display: flex; flex-direction: column; gap: 0.5rem; }
.agenda-item { position: relative; }
.agenda-item-go {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--turquoise);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.agenda-item:hover .agenda-item-go { opacity: 1; transform: translateY(-50%) translateX(3px); }

/* Čitateľnosť obsahu modulov a pop-okien — o niečo väčší text */
#module-view .info-card p,
#node-modal .info-card p { font-size: 1.04rem; line-height: 1.62; }
#module-view .info-card h4,
#node-modal .info-card h4 { font-size: 1.08rem; }
#module-view .module-prose li,
#node-modal .module-prose li,
#node-modal .info-card li { font-size: 1.02rem; line-height: 1.6; }
#module-view .module-prose p,
#node-modal .modal-body > p { font-size: 1.04rem; line-height: 1.62; }

/* Use case canvas — vyplnený príklad + nápovedy polí */
.usecase-example {
  margin: 1.25rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--ok-border-light);
  border-left: 3px solid var(--turquoise);
  border-radius: 12px;
  background: var(--ok-offwhite, #fafafa);
}
.usecase-example-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 0.5rem;
}
.usecase-example ul { margin: 0; padding-left: 1.1rem; }
.usecase-example li { color: var(--ok-muted); font-size: 0.92rem; line-height: 1.55; }
.usecase-example li strong { color: var(--ok-ink); }
.usecase-form .field-label { display: block; font-weight: 600; color: var(--ok-ink); }
.usecase-form .field-hint { display: block; font-size: 0.82rem; color: var(--ok-muted); margin: 0.1rem 0 0.45rem; }

/* ============================================================
   Sales simulátor
   ============================================================ */
.sim-page { padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem); }
.sim-container { max-width: 880px; }
.sim-hero { margin: 0.5rem 0 1.75rem; }
.sim-hero h1 { margin: 0.4rem 0 0.9rem; }
.sim-hero .lead { max-width: 60ch; }

.sim-setup {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.sim-field { display: flex; flex-direction: column; }
.sim-field .field-label { display: block; font-weight: 600; color: var(--text); margin-bottom: 0.15rem; }
.sim-field .field-hint { display: block; font-size: 0.83rem; color: var(--text-dim); margin-bottom: 0.55rem; }
.sim-field input[type="text"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--midnight-3);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.sim-field input[type="text"]:focus { outline: none; border-color: var(--turquoise); }

.sim-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; }
.sim-pick {
  display: flex; flex-direction: column; gap: 0.15rem; text-align: left;
  padding: 0.8rem 0.9rem; border-radius: 12px;
  background: var(--midnight-3); border: 1px solid var(--border-strong);
  color: var(--text); cursor: pointer; font-family: inherit; transition: all 0.18s var(--ease);
}
.sim-pick span { font-size: 0.78rem; color: var(--text-dim); }
.sim-pick[aria-pressed="true"] { border-color: var(--turquoise); background: rgba(97,162,41,0.16); }

.sim-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sim-chip {
  padding: 0.5rem 0.95rem; border-radius: 999px;
  background: var(--midnight-3); border: 1px solid var(--border-strong);
  color: var(--text-muted); cursor: pointer; font-family: inherit; font-size: 0.9rem; transition: all 0.18s var(--ease);
}
.sim-chip[aria-pressed="true"] { border-color: var(--turquoise); background: rgba(97,162,41,0.18); color: var(--text); }

.sim-range { width: 100%; accent-color: var(--turquoise); }
.sim-note { font-size: 0.83rem; color: var(--text-dim); line-height: 1.5; margin: 0; }

/* chat */
.sim-page-chat { padding-top: 1rem; }
.sim-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0.85rem 1rem; margin-bottom: 1rem;
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
}
.sim-bar-info { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.sim-bar-tag { font-weight: 700; font-size: 0.9rem; color: var(--turquoise); }
.sim-bar-product { font-size: 0.82rem; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 38ch; }
.sim-bar-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.sim-counter { font-size: 0.8rem; color: var(--text-dim); white-space: nowrap; }
.sim-exit { background: none; border: none; color: var(--text-dim); font-size: 1.1rem; cursor: pointer; padding: 0.3rem 0.5rem; }
.sim-exit:hover { color: var(--text); }

.sim-log {
  min-height: 340px; max-height: 58vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 0.7rem;
  padding: 1rem; background: var(--midnight-2); border: 1px solid var(--border); border-radius: 16px;
}
.sim-msg { display: flex; }
.sim-msg-me { justify-content: flex-end; }
.sim-bubble {
  max-width: 80%; padding: 0.75rem 1rem; border-radius: 16px; line-height: 1.55; font-size: 1.02rem;
}
.sim-msg-ai .sim-bubble { background: var(--midnight-3); border: 1px solid var(--border); border-bottom-left-radius: 5px; color: var(--text); }
.sim-msg-me .sim-bubble { background: var(--turquoise); color: #fff; border-bottom-right-radius: 5px; }
.sim-typing { display: inline-flex; gap: 4px; }
.sim-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); animation: simblink 1.2s infinite; }
.sim-typing span:nth-child(2) { animation-delay: 0.2s; }
.sim-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes simblink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.sim-error { background: rgba(255,107,107,0.12); border: 1px solid rgba(255,107,107,0.4); color: #ffb4b4; padding: 0.7rem 0.9rem; border-radius: 12px; font-size: 0.9rem; }

.sim-inputbar { display: flex; gap: 0.6rem; align-items: flex-end; margin-top: 0.9rem; }
.sim-inputbar textarea {
  flex: 1; resize: none; padding: 0.85rem 1rem; border-radius: 14px;
  background: var(--midnight-3); border: 1px solid var(--border-strong); color: var(--text);
  font-family: inherit; font-size: 1rem; line-height: 1.5; max-height: 140px;
}
.sim-inputbar textarea:focus { outline: none; border-color: var(--turquoise); }
.sim-send {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; border: none;
  background: var(--turquoise); color: #fff; font-size: 1.3rem; cursor: pointer; transition: transform 0.15s var(--ease), opacity 0.15s;
}
.sim-send:hover:not(:disabled) { transform: translateY(-1px); }
.sim-send:disabled, .sim-inputbar textarea:disabled { opacity: 0.5; cursor: not-allowed; }
.sim-ended { margin-top: 1rem; display: flex; justify-content: center; }

@media (max-width: 600px) {
  .sim-bar-product { max-width: 20ch; }
  .sim-bubble { max-width: 90%; }
}

/* ===== Sales simulátor — vylepšené UI (briefing, kto hovorí, debrief) ===== */
.sim-how { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.7rem; margin-top: 1.5rem; }
.sim-how-step { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.8rem; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); }
.sim-how-step b { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 50%; background: var(--turquoise); color: #fff; font-size: 0.72rem; }
.sim-how-arr { color: var(--text-dim); }

.sim-block-title { margin: 1.7rem 0 0.5rem; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--turquoise); }
.sim-block-title:first-child { margin-top: 0; }
.sim-field .field-label em { font-style: normal; color: var(--text-dim); font-weight: 400; }
.sim-pick-sm { padding: 0.65rem 0.85rem; }
.sim-pick-sm span { font-size: 0.76rem; }
.sim-picks-sm { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.sim-diff-num { color: var(--turquoise); font-weight: 800; }
.sim-input-err { border-color: #ff6b6b !important; }

.sim-brief { background: linear-gradient(180deg, rgba(97,162,41,0.10), rgba(97,162,41,0.03)); border: 1px solid var(--border-strong); border-radius: 16px; padding: 1.1rem 1.2rem; margin-bottom: 1.1rem; }
.sim-brief-head { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.9rem; }
.sim-brief-badge { display: inline-block; background: var(--turquoise); color: #fff; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.08em; padding: 0.18rem 0.55rem; border-radius: 6px; margin-right: 0.5rem; }
.sim-brief-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.9rem; }
.sim-brief-item { background: var(--midnight-2); border: 1px solid var(--border); border-radius: 12px; padding: 0.85rem 0.9rem; }
.sim-brief-item.sim-brief-client { border-color: var(--turquoise); }
.sim-brief-k { display: block; font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.3rem; }
.sim-brief-item > strong { display: block; font-size: 0.98rem; }
.sim-brief-item p { font-size: 0.86rem; color: var(--text-muted); margin-top: 0.3rem; line-height: 1.45; }
.sim-brief-foot { margin-top: 0.95rem; font-size: 0.9rem; color: var(--text-muted); }

.sim-msg { display: flex; align-items: flex-end; gap: 0.55rem; }
.sim-msg-col { display: flex; flex-direction: column; max-width: 78%; }
.sim-msg-me .sim-msg-col { align-items: flex-end; }
.sim-who { font-size: 0.74rem; font-weight: 700; margin: 0 0.35rem 0.22rem; }
.sim-who-ai { color: var(--turquoise); }
.sim-who-me { color: var(--text-dim); }
.sim-ava { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.sim-ava-ai { background: var(--midnight-3); border: 1px solid var(--border-strong); }
.sim-ava-me { background: var(--turquoise); color: #fff; font-size: 0.72rem; font-weight: 800; }
.sim-bubble { max-width: 100%; }

.sim-turn-cue { text-align: center; font-size: 0.85rem; color: var(--turquoise); margin: 0.85rem 0 0.45rem; font-weight: 600; }
.sim-model { font-size: 0.72rem; color: var(--text-dim); background: var(--panel); border: 1px solid var(--border); padding: 0.2rem 0.5rem; border-radius: 8px; white-space: nowrap; }

.sim-debrief-card { margin-top: 1rem; background: linear-gradient(180deg, rgba(97,162,41,0.12), rgba(97,162,41,0.04)); border: 1px solid var(--turquoise); border-radius: 16px; padding: 1.3rem 1.4rem; }
.sim-debrief-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.8rem; }
.sim-debrief-body { font-size: 1.02rem; line-height: 1.62; color: var(--text); }
.sim-debrief-body strong { color: var(--turquoise); }
.sim-debrief-card .button { margin-top: 1.2rem; }
.sim-debrief-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.sim-debrief-actions .button { margin-top: 1.2rem; }

/* Module figure (printscreeny / ukážky) */
.module-figure-title { margin: 1.85rem 0 0.6rem; font-size: 1.12rem; }
.module-figure {
  margin: 1.4rem 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--midnight-3);
}
.module-figure img { display: block; width: 100%; height: auto; }
.module-figure figcaption {
  padding: 0.85rem 1.15rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--border);
}
.module-figure.is-missing { padding: 2.5rem 1.2rem; text-align: center; }
.module-figure.is-missing::before {
  content: "🖼️ Sem sa doplní printscreen (assets/screenshots/)";
  display: block; color: var(--text-dim); font-size: 0.95rem; margin-bottom: 0.4rem;
}
.module-figure.is-missing figcaption { border-top: none; text-align: left; }

/* ============================================
   Topbar
   ============================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
  min-height: var(--topbar-h);
  background: rgba(22, 29, 24, 0.85);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  min-width: 0;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 0.7rem 1.25rem 0.7rem 0.85rem;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.home-btn svg {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  pointer-events: none;
}

.home-label {
  font-size: 1.025rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
}

.home-btn:hover {
  background: var(--panel-strong);
  color: var(--turquoise);
  border-color: var(--turquoise);
  transform: translateY(-1px);
}

.home-btn:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .home-label {
    display: none;
  }
  .home-btn {
    padding: 0.65rem;
    width: 48px;
    height: 48px;
    justify-content: center;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  flex-shrink: 0;
  min-width: 0;
}

.brand-logo {
  height: 28px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.brand > span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand strong {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand small {
  font-size: 0.94rem;
  color: var(--text-dim);
  font-weight: 300;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.desktop-nav > a,
.desktop-nav > .nav-button {
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
  position: relative;
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
}

.desktop-nav > a:hover,
.desktop-nav > .nav-button:hover {
  color: var(--text);
  background: var(--panel);
}

.desktop-nav > a.active {
  color: var(--text);
  background: var(--panel-strong);
}

.menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  transition: background 0.25s var(--ease);
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 49;
  display: none;
  flex-direction: column;
  background: rgba(22, 29, 24, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.25rem;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a,
.mobile-nav .nav-button {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1.05rem;
  font-family: inherit;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
}

.mobile-nav a:active,
.mobile-nav .nav-button:active,
.mobile-nav a:hover,
.mobile-nav .nav-button:hover {
  background: var(--panel);
  color: var(--text);
}

/* ============================================
   Buttons
   ============================================ */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.button.primary {
  background: #ffffff;
  color: var(--midnight);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.36);
}

.button.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button.ghost {
  background: var(--panel);
  color: var(--text);
  border-color: var(--border-strong);
}

.button.ghost:hover {
  background: var(--panel-strong);
  border-color: var(--turquoise);
}

.button.compact {
  padding: 0.7rem 1.2rem;
  font-size: 0.85rem;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.button.compact:hover {
  background: var(--panel-strong);
  color: var(--text);
}

.button .arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.button:hover .arrow {
  transform: translateX(3px);
}

/* ============================================
   Hero (centered, single column)
   ============================================ */
.hero {
  padding-block: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

/* Hero background photo layer — interiér elektrárne na biomasu, anchored right */
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('assets/teho-tech.jpg');
  background-size: min(52%, 760px) auto;
  background-position: right bottom;
  background-color: var(--midnight);
  background-repeat: no-repeat;
  pointer-events: none;
  filter: saturate(0.85) brightness(0.9);
}

@media (max-width: 900px) {
  .hero-bg-image {
    background-size: cover;
    background-position: 72% top;
    opacity: 0.42;
  }
}

/* Overlay — text legibility on the left, trio clear on the right */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(22, 29, 24, 0.99) 0%,
      rgba(22, 29, 24, 0.96) 38%,
      rgba(22, 29, 24, 0.72) 58%,
      rgba(22, 29, 24, 0.28) 78%,
      rgba(22, 29, 24, 0.08) 100%
    ),
    linear-gradient(180deg,
      rgba(22, 29, 24, 0.35) 0%,
      rgba(22, 29, 24, 0.1) 45%,
      rgba(22, 29, 24, 0.92) 100%
    );
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: floatBubble 18s ease-in-out infinite;
}

.hero-bg::before {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: var(--pink);
}

.hero-bg::after {
  width: 480px;
  height: 480px;
  bottom: -180px;
  left: -120px;
  background: var(--turquoise);
  animation-delay: -9s;
}

@keyframes floatBubble {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.05); }
  66%      { transform: translate(-30px, 40px) scale(0.97); }
}

.hero-grid--centered {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 5;
}

.hero-copy {
  max-width: 600px;
  text-align: left;
  position: relative;
  z-index: 5;
}

.hero-copy h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy h1 {
  margin: 0.5rem 0 1.5rem;
}

.hero-copy .lead {
  margin-bottom: 2.5rem;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  max-width: 40ch;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.client-strip {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.client-logo-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.95rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  min-width: 180px;
}

.client-logo-card > span {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.client-logo-card img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.client-logo-card.transformio-card img {
  height: 22px;
}

.lagermax-logo {
  background: #fff;
  padding: 4px 8px;
  border-radius: 6px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  justify-content: start;
}

.hero-stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stats strong {
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.hero-stats span {
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* Hero — preklik na AI Tréning */
.hero-training-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--gradient-soft);
  max-width: 560px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.22s var(--ease);
}

.hero-training-card:hover {
  border-color: var(--turquoise);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.hero-training-icon {
  font-size: 1.7rem;
  flex-shrink: 0;
}

.hero-training-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-training-body strong {
  font-size: 1.02rem;
  font-weight: 700;
}

.hero-training-body span {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.hero-training-cta {
  margin-left: auto;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--yellow);
  white-space: nowrap;
}

/* ============================================
   Mode grid (Pred / Počas / Po)
   ============================================ */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.mode-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mode-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--panel-strong);
}

.mode-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.mode-card:hover::after {
  opacity: 1;
}

.mode-number {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.mode-card h3 {
  font-size: 1.25rem;
}

.mode-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.mode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.mode-list li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.mode-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--turquoise);
  font-weight: 700;
}

/* ============================================
   Module grid (landing entries)
   ============================================ */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}

.module-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
}

.module-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.module-card:hover {
  transform: translateY(-4px);
  background: var(--panel-strong);
  border-color: var(--border-strong);
}

.module-card:hover::before {
  transform: scaleX(1);
}

.module-card .module-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--turquoise);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.module-card .module-num .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 10px var(--turquoise-glow);
}

.module-card h3 {
  font-size: 1.2rem;
  line-height: 1.25;
}

.module-card .focus {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.module-card p {
  font-size: 0.93rem;
  line-height: 1.55;
}

.module-card .module-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.module-card .module-foot span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.module-card .module-state {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--turquoise);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ============================================
   Test CTA Card on landing
   ============================================ */
.test-cta-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.test-cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.test-cta-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.test-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.test-stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.test-stats strong {
  font-size: clamp(1.7rem, 2.5vw, 2rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.test-stats span {
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.test-cta-info p {
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 64ch;
}

.test-cta-info .button {
  align-self: flex-start;
}

/* ============================================
   AI Test page
   ============================================ */
.test-view-bg::before {
  content: "";
  position: absolute;
  top: 12%;
  right: 4%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--pink);
  filter: blur(140px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.test-view-bg::after {
  content: "";
  position: absolute;
  bottom: 12%;
  left: 4%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--turquoise);
  filter: blur(160px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.test-page {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.test-page .container {
  position: relative;
  z-index: 1;
}

/* Breadcrumb for sub-pages */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.breadcrumb a:hover {
  color: var(--turquoise);
}

.breadcrumb .sep {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.breadcrumb .current {
  color: var(--text);
  font-weight: 500;
}

/* Test levels grid */
.test-intro {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.test-intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.test-intro h2 {
  margin-bottom: 0.5rem;
}

.test-intro .lead {
  margin-bottom: 2rem;
}

.name-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.name-input-row label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.name-input-row input {
  padding: 0.95rem 1.2rem;
  background: var(--midnight-2);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 0.25s var(--ease);
}

.name-input-row input:focus {
  outline: none;
  border-color: var(--turquoise);
}

.name-input-row input.error {
  border-color: var(--pink);
  animation: shake 0.4s var(--ease);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.name-input-hint {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
}

.level-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.level-card {
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.level-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.level-card.unlocked:hover {
  border-color: var(--turquoise);
  background: var(--panel-strong);
}

.level-card.unlocked:hover::before {
  transform: scaleX(1);
}

.level-card.locked {
  opacity: 0.5;
}

.level-card.completed {
  background: linear-gradient(135deg, rgba(23, 143, 170, 0.08), rgba(97, 162, 41, 0.06));
  border-color: var(--turquoise);
}

.level-card.completed::before {
  transform: scaleX(1);
}

.level-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.level-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turquoise);
}

.level-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.level-badge.unlocked {
  background: rgba(23, 143, 170, 0.14);
  color: var(--turquoise);
  border-color: rgba(23, 143, 170, 0.3);
}

.level-badge.completed {
  background: var(--gradient);
  color: var(--midnight);
  border-color: transparent;
}

.level-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
}

.level-card p {
  font-size: 0.93rem;
  line-height: 1.5;
}

.level-card .level-meta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-dim);
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.level-card .level-meta span::before {
  content: "·";
  margin-right: 0.5rem;
  color: var(--turquoise);
}

.level-card .level-meta span:first-child::before {
  display: none;
}

.level-card .level-action {
  margin-top: auto;
}

.level-card .level-result {
  font-size: 0.82rem;
  color: var(--turquoise);
  font-weight: 600;
}

/* Resume banner */
.resume-banner {
  background: linear-gradient(135deg, rgba(23, 143, 170, 0.1), rgba(97, 162, 41, 0.08));
  border: 1px solid rgba(23, 143, 170, 0.3);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.resume-banner strong {
  color: var(--turquoise);
  font-weight: 700;
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.resume-banner p {
  font-size: 0.88rem;
  margin: 0;
}

.resume-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Question screen */
.test-question-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 3rem);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.test-question-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.test-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.test-progress .progress-text {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.test-progress .progress-text strong {
  color: var(--turquoise);
  font-weight: 700;
}

.test-progress .progress-rail {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  min-width: 160px;
}

.test-progress .progress-rail-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 999px;
  transition: width 0.5s var(--ease);
  box-shadow: 0 0 12px var(--turquoise-glow);
}

.test-progress .level-tag-small {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--turquoise);
  background: rgba(23, 143, 170, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.test-question-h {
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.test-question-hint {
  font-size: 0.92rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.test-options {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.test-option {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.35rem;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-size: 0.97rem;
  line-height: 1.5;
  text-align: left;
  color: var(--text-muted);
  width: 100%;
  font-family: inherit;
  font-weight: 400;
}

.test-option:hover {
  background: var(--panel-strong);
  border-color: var(--turquoise);
  color: var(--text);
}

.test-option .opt-marker {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--panel-strong);
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.25s var(--ease);
}

.test-option:hover .opt-marker {
  border-color: var(--turquoise);
  color: var(--turquoise);
}

.test-option.selected {
  background: rgba(23, 143, 170, 0.08);
  border-color: var(--turquoise);
  color: var(--text);
}

.test-option.selected .opt-marker {
  background: var(--gradient);
  border-color: transparent;
  color: var(--midnight);
}

.test-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.test-actions .left,
.test-actions .right {
  display: flex;
  gap: 0.5rem;
}

/* Test result screen */
.test-result-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.test-result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.result-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.result-status {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
}

.result-status.passed {
  background: rgba(23, 143, 170, 0.14);
  color: var(--turquoise);
}

.result-status.failed {
  background: rgba(97, 162, 41, 0.12);
  color: var(--pink);
}

.score-ring {
  position: relative;
  width: 200px;
  height: 200px;
  display: grid;
  place-items: center;
}

.score-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring circle {
  fill: none;
  stroke-width: 12;
}

.score-ring .bg { stroke: rgba(255, 255, 255, 0.08); }

.score-ring .fg {
  stroke: url(#scoreGradient);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s var(--ease);
  filter: drop-shadow(0 0 14px var(--turquoise-glow));
}

.score-ring .score-value {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.score-ring .score-value strong {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.score-ring .score-value span {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.4rem;
  font-weight: 600;
}

.result-summary {
  font-size: 1.05rem;
  max-width: 56ch;
  line-height: 1.55;
}

.result-breakdown {
  margin-bottom: 2rem;
}

.result-breakdown h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 1rem;
}

.breakdown-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
}

.breakdown-item.correct { border-left: 3px solid var(--turquoise); }
.breakdown-item.wrong { border-left: 3px solid var(--pink); }

.breakdown-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
}

.breakdown-mark.correct {
  background: rgba(23, 143, 170, 0.18);
  color: var(--turquoise);
}

.breakdown-mark.wrong {
  background: rgba(97, 162, 41, 0.18);
  color: var(--pink);
}

.breakdown-q {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.breakdown-explain {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.result-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 1rem;
}

/* Certificate (print view) */
.certificate {
  background: #fff;
  color: #05071a;
  padding: 3.5rem;
  border-radius: var(--radius);
  max-width: 900px;
  margin: 2rem auto;
  position: relative;
  font-family: "Roboto Condensed", "Rajdhani", system-ui, sans-serif;
  box-shadow: var(--shadow-lg);
}

.certificate::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--gradient);
  border-radius: var(--radius) var(--radius) 0 0;
}

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.cert-header img {
  height: 36px;
}

.cert-client-logo {
  background: #f5f6fb;
  padding: 6px 12px;
  border-radius: 6px;
  height: 44px !important;
}

.cert-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6d7290;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.cert-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #05071a;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.cert-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cert-name-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6d7290;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.cert-name {
  font-size: 2.2rem;
  font-weight: 700;
  color: #05071a;
  text-align: center;
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e6e8f0;
}

.cert-body {
  font-size: 1rem;
  color: #4b5066;
  line-height: 1.7;
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 2.5rem;
}

.cert-body strong {
  color: #05071a;
  font-weight: 700;
}

.cert-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid #e6e8f0;
}

.cert-meta > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
}

.cert-meta .label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d7290;
  font-weight: 600;
}

.cert-meta .value {
  font-size: 0.95rem;
  color: #05071a;
  font-weight: 600;
}

@media print {
  @page { margin: 0; size: A4 landscape; }
  body { background: #fff !important; }
  body::before { display: none; }
  .topbar, .footer, .mobile-nav, .toast, .modal { display: none !important; }
  .view { padding: 0 !important; }
  .cert-only { display: block !important; }
  .certificate {
    box-shadow: none;
    margin: 0;
    padding: 2.5rem 3.5rem;
    width: 100%;
    max-width: none;
    border-radius: 0;
  }
}

/* ============================================
   MODULE PAGE (sub-page layout)
   ============================================ */
.module-page {
  position: relative;
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.module-hero {
  margin-bottom: 2.5rem;
  position: relative;
}

.module-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 1rem;
}

.module-hero-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 8px var(--turquoise-glow);
}

.module-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 1rem;
}

.module-hero .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  max-width: 70ch;
}

.module-layout {
  display: grid;
  grid-template-columns: var(--module-sidebar-w) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

/* Sidebar with TOC */
.module-sidebar {
  position: sticky;
  top: calc(var(--topbar-h) + 24px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  max-height: calc(100vh - var(--topbar-h) - 48px);
  overflow-y: auto;
}

.module-sidebar h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.module-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1.5rem;
}

.module-toc a {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
  font-weight: 400;
  line-height: 1.35;
}

.module-toc a:hover {
  background: var(--panel-strong);
  color: var(--text);
}

.module-toc a.active {
  background: rgba(23, 143, 170, 0.1);
  color: var(--turquoise);
  font-weight: 500;
}

.module-toc .toc-num {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  width: 18px;
  padding-top: 0.1rem;
}

.module-toc a.active .toc-num {
  color: var(--turquoise);
}

.module-prev-next {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.module-prev-next a,
.module-prev-next button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.module-prev-next a:hover,
.module-prev-next button:hover {
  background: var(--panel-strong);
  color: var(--text);
  border-color: var(--turquoise);
}

.module-prev-next .nav-direction {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.15rem;
}

.module-prev-next .nav-title {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}

/* Main content */
.module-main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  min-width: 0;
}

.module-section-block {
  scroll-margin-top: calc(var(--topbar-h) + 24px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.module-section-block:hover {
  border-color: var(--border-strong);
}

.module-section-block.open {
  background: var(--panel-strong);
  border-color: var(--border-strong);
}

.section-toggle {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem 1.75rem;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: background 0.25s var(--ease);
}

.section-toggle:hover {
  background: rgba(255, 255, 255, 0.02);
}

.section-toggle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.module-section-block .section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 0;
}

.module-section-block .section-label::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-chevron {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--panel-strong);
  color: var(--text-muted);
  transition: transform 0.35s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  flex-shrink: 0;
}

.section-chevron svg {
  width: 16px;
  height: 16px;
}

.module-section-block.open .section-chevron {
  transform: rotate(180deg);
  background: var(--gradient);
  color: var(--midnight);
}

.module-section-block h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 0;
  text-align: left;
  line-height: 1.2;
}

.section-body {
  padding: 0 1.75rem 1.75rem;
  display: none;
}

.module-section-block.open .section-body {
  display: block;
  animation: sectionFadeIn 0.4s var(--ease);
}

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

.module-expand-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: flex-end;
}

.section-toggle-all {
  padding: 0.5rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: inherit;
}

.section-toggle-all:hover {
  background: var(--panel-strong);
  color: var(--text);
  border-color: var(--turquoise);
}

.module-main {
  display: flex;
  flex-direction: column;
  gap: 0.85rem !important;
}

.module-section-block > p,
.module-section-block .module-prose p {
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.module-prose ul {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.module-prose ul li {
  padding-left: 1.6rem;
  position: relative;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.module-prose ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--turquoise);
  font-weight: 700;
}

.module-prose strong {
  color: var(--text);
  font-weight: 600;
}

/* Cards in module body */
.info-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  backdrop-filter: blur(10px);
  margin: 1.25rem 0;
  position: relative;
  overflow: hidden;
}

.info-card.accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient);
}

.info-card.warning::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--pink);
}

.info-card h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 0.7rem;
}

.info-card.warning h4 {
  color: var(--pink);
}

.info-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* AI map diagram (visual concept block) */
.ai-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.ai-node {
  padding: 1.1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.ai-node:hover {
  transform: translateY(-3px);
  background: var(--panel-strong);
  border-color: var(--turquoise);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(23, 143, 170, 0.2);
}

.ai-node-hint {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: 0.35rem;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.ai-node:hover .ai-node-hint {
  opacity: 1;
}

.ai-node.active {
  background: var(--gradient);
  color: var(--midnight);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(23, 143, 170, 0.25);
}

.ai-node.active .ai-node-hint {
  color: rgba(22, 29, 24, 0.6);
}

.ai-node.active:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(97, 162, 41, 0.4);
}

.ai-node.main {
  background: var(--midnight-2);
  border-color: var(--border-strong);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.ai-map-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(23, 143, 170, 0.06);
  border-left: 2px solid var(--turquoise);
  border-radius: 6px;
}

.ai-map-hint strong {
  color: var(--turquoise);
}

/* ============================================
   Node detail modal (Module 1)
   ============================================ */
.node-modal-panel {
  max-width: 720px;
}

.node-modal-panel .modal-kicker {
  color: var(--turquoise);
}

/* ============================================
   AI Ekosystémy page
   ============================================ */
.ekosystemy-page {
  position: relative;
  padding-block: clamp(2rem, 5vw, 3.5rem);
  min-height: 60vh;
}

.ekosystemy-hero {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 800px;
  margin-inline: auto;
}

.ekosystemy-hero .eyebrow {
  justify-content: center;
}

.ekosystemy-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}

.ekosystemy-hero .lead {
  margin-inline: auto;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.ekosystemy-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.ecosystem-card {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.ecosystem-card:hover {
  border-color: var(--eco-color, var(--turquoise));
}

.ecosystem-card.open {
  background: var(--panel-strong);
  border-color: var(--eco-color);
}

.ecosystem-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--eco-color, var(--gradient));
}

.ecosystem-card.open::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--eco-color);
  filter: blur(140px);
  opacity: 0.14;
  pointer-events: none;
}

.ecosystem-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: inherit;
  width: 100%;
  position: relative;
  z-index: 1;
  transition: background 0.25s var(--ease);
}

.ecosystem-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.ecosystem-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}

.ecosystem-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.45rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--eco-color) 0%, color-mix(in srgb, var(--eco-color) 70%, #000) 100%) !important;
  color: #fff !important;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--eco-color) 35%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.ecosystem-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.25), transparent 60%);
  pointer-events: none;
}

.ecosystem-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ecosystem-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.ecosystem-chevron {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel-strong);
  color: var(--text-muted);
  transition: transform 0.4s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  flex-shrink: 0;
}

.ecosystem-chevron svg {
  width: 18px;
  height: 18px;
}

.ecosystem-card.open .ecosystem-chevron {
  transform: rotate(180deg);
  background: var(--eco-color);
  color: #fff;
}

.ecosystem-body {
  display: none;
  padding: 0 1.75rem 1.75rem;
  position: relative;
  z-index: 1;
  animation: ecoFadeIn 0.4s var(--ease);
}

.ecosystem-card.open .ecosystem-body {
  display: block;
}

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

/* Legacy ecosystem-card-head — keep as no-op for backward compat */
.ecosystem-card-head {
  display: none;
}

.ecosystem-vendor {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eco-color);
  font-weight: 700;
}

.ecosystem-meta h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  margin: 0.15rem 0 0.3rem;
  font-weight: 800;
}

.ecosystem-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

.ecosystem-key-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .ecosystem-key-row { grid-template-columns: 1fr; }
}

.ecosystem-key {
  padding: 1rem 1.15rem;
  border-radius: 12px;
  position: relative;
}

.ecosystem-key.strength {
  background: rgba(23, 143, 170, 0.07);
  border: 1px solid rgba(23, 143, 170, 0.25);
}

.ecosystem-key.weakness {
  background: rgba(97, 162, 41, 0.05);
  border: 1px solid rgba(97, 162, 41, 0.22);
}

.ecosystem-key-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.ecosystem-key.strength .ecosystem-key-label { color: var(--turquoise); }
.ecosystem-key.weakness .ecosystem-key-label { color: var(--pink); }

.ecosystem-key p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}

.ecosystem-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.ecosystem-stat .stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
}

.ecosystem-stat .stat-value {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .ecosystem-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .ecosystem-header-right {
    width: 100%;
    justify-content: space-between;
  }
}

.ecosystem-privacy {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ecosystem-privacy.ok {
  background: rgba(23, 143, 170, 0.14);
  color: var(--turquoise);
  border: 1px solid rgba(23, 143, 170, 0.3);
}

.ecosystem-privacy.warn {
  background: rgba(97, 162, 41, 0.1);
  color: var(--pink);
  border: 1px solid rgba(97, 162, 41, 0.25);
}

.ecosystem-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.ecosystem-section {
  margin-bottom: 1.25rem;
}

.ecosystem-section h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.65rem;
}

.ecosystem-section.pros h4 {
  color: var(--turquoise);
}

.ecosystem-section.cons h4 {
  color: var(--pink);
}

.ecosystem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ecosystem-tag {
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 500;
}

.ecosystem-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ecosystem-list li {
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ecosystem-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--eco-color, var(--turquoise));
  font-weight: 700;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
  .ecosystem-grid { grid-template-columns: 1fr; }
}

.ecosystem-best-for {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--eco-color);
  margin-bottom: 1rem;
}

.ecosystem-best-for .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eco-color);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.ecosystem-best-for p {
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.ecosystem-pricing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.ecosystem-pricing .label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
}

.ecosystem-pricing span:last-child {
  color: var(--text);
  font-weight: 500;
}

/* Comparison matrix */
.ekosystemy-compare {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: clamp(3rem, 5vw, 4rem);
  backdrop-filter: blur(14px);
}

.ekosystemy-compare h2 {
  margin-bottom: 1rem;
}

.ekosystemy-compare .lead {
  margin-bottom: 2rem;
}

.matrix-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  border: 1px solid var(--border);
}

.ecosystem-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
}

.ecosystem-matrix th,
.ecosystem-matrix td {
  padding: 1rem 1.15rem;
  text-align: center;
  vertical-align: middle;
}

.ecosystem-matrix thead th {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border-strong);
}

.metric-th {
  text-align: left !important;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  width: 22%;
  min-width: 200px;
}

.matrix-vendor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.matrix-vendor-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.92rem;
  background: linear-gradient(135deg, var(--eco-color) 0%, color-mix(in srgb, var(--eco-color) 70%, #000) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--eco-color) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  letter-spacing: -0.02em;
}

.matrix-vendor-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.3), transparent 60%);
  pointer-events: none;
}

.matrix-vendor strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.matrix-vendor small {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.ecosystem-matrix td.metric {
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.ecosystem-matrix td.metric strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.ecosystem-matrix td.metric small {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.score-cell {
  white-space: nowrap;
  position: relative;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem !important;
}

.score-cell.leader {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.leader-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--eco-color);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.score-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-bottom: 0.4rem;
}

.score-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.25s var(--ease);
}

.score-dots .dot.filled {
  background: var(--eco-color, var(--gradient));
}

.score-num {
  font-size: 0.74rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.score-cell.leader .score-num {
  color: var(--eco-color);
  font-weight: 700;
}

.insight-row td {
  padding: 0 1.15rem 1rem !important;
  border-top: none;
}

.insight-cell {
  text-align: left !important;
  background: rgba(23, 143, 170, 0.04);
  border-left: 2px solid var(--turquoise);
  border-radius: 0 6px 6px 0;
  padding: 0.75rem 1.15rem 0.75rem 1rem !important;
}

.insight-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--turquoise);
  margin-right: 0.65rem;
}

.insight-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Matrix takeaways grid below matrix */
.matrix-takeaways {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.matrix-takeaways h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.takeaway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.takeaway-card {
  padding: 1.1rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--eco-color);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.takeaway-card .t-vendor {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eco-color);
}

.takeaway-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.takeaway-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .matrix-wrap {
    padding: 0.25rem;
  }
  .ecosystem-matrix {
    min-width: 580px;
  }
  .ecosystem-matrix th, .ecosystem-matrix td {
    padding: 0.85rem 0.65rem;
  }
}

/* Recommendation mix */
.ekosystemy-recommendation {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.ekosystemy-recommendation h2 {
  margin-bottom: 1.5rem;
}

.ekosystemy-mix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.mix-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mix-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  align-self: flex-start;
}

.mix-item h4 {
  font-size: 1.15rem;
  font-weight: 700;
}

.mix-item p {
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Next section */
.ekosystemy-next h2 {
  margin-bottom: 1.5rem;
}

.ekosystemy-next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.next-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--ease);
}

.next-card:hover {
  transform: translateY(-3px);
  background: var(--panel-strong);
  border-color: var(--turquoise);
}

.next-card span {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise);
  font-weight: 700;
}

.next-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.next-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Flow diagram */
.flow-diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.flow-step {
  padding: 1.25rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  font-family: inherit;
  color: inherit;
  text-align: left;
}

.flow-step.interactive {
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}

.flow-step.interactive:hover {
  transform: translateY(-3px);
  background: var(--panel-strong);
  border-color: var(--turquoise);
  box-shadow: 0 12px 28px rgba(23, 143, 170, 0.2);
}

.flow-hint {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: 0.5rem;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.flow-step.interactive:hover .flow-hint {
  opacity: 1;
  color: var(--turquoise);
}

.flow-step strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.flow-step .flow-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.flow-step p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Prompt example block */
.prompt-block {
  background: var(--midnight-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  margin: 1.25rem 0;
}

.prompt-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient);
}

.prompt-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.prompt-block-head strong {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

.prompt-block .copy-btn {
  padding: 0.45rem 1rem;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.prompt-block .copy-btn:hover {
  background: var(--gradient);
  color: var(--midnight);
  border-color: transparent;
}

.prompt-block pre {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  white-space: pre-wrap;
  margin: 0;
}

/* Checklist inside module */
.module-checklist {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.module-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.module-checklist li::before {
  content: "✓";
  font-weight: 800;
  color: var(--turquoise);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Bottom navigation in module page */
.module-bottom-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.module-bottom-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.25rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
}

.module-bottom-nav a:hover {
  background: var(--panel-strong);
  border-color: var(--turquoise);
  transform: translateY(-2px);
}

.module-bottom-nav a.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.module-bottom-nav .nav-direction {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.module-bottom-nav .nav-title {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.module-bottom-nav .next {
  text-align: right;
}

/* ============================================
   Prompt library (inside Module 3)
   ============================================ */
.prompt-tools {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  max-width: 420px;
}

.search-field span {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.search-field input {
  width: 100%;
  padding: 0.9rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.search-field input:focus {
  outline: none;
  border-color: var(--turquoise);
  background: var(--panel-strong);
}

.controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}

.chip:hover {
  background: var(--panel-strong);
  color: var(--text);
}

.chip.active {
  background: var(--gradient);
  color: var(--midnight);
  border-color: transparent;
  font-weight: 700;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.prompt-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.1rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.prompt-card:hover {
  transform: translateY(-3px);
  background: var(--panel-strong);
  border-color: var(--border-strong);
}

.prompt-card .prompt-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turquoise);
  font-weight: 700;
}

.prompt-card h3 {
  font-size: 1.02rem;
  line-height: 1.3;
}

.prompt-card .prompt-body {
  font-size: 0.85rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--midnight-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  line-height: 1.55;
  white-space: pre-wrap;
  max-height: 200px;
  overflow-y: auto;
}

.prompt-card .prompt-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.prompt-card .prompt-foot small {
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.prompt-card .copy-btn {
  padding: 0.5rem 1rem;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}

.prompt-card .copy-btn:hover {
  background: var(--gradient);
  color: var(--midnight);
  border-color: transparent;
}

/* ============================================
   Fact-check mini quiz (Module 1)
   ============================================ */
.fc-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: var(--panel-strong);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.fc-stats strong {
  color: var(--turquoise);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.fc-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fc-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}

.fc-card.answered.correct {
  border-color: var(--turquoise);
  background: rgba(23, 143, 170, 0.05);
}

.fc-card.answered.wrong {
  border-color: var(--pink);
  background: rgba(97, 162, 41, 0.04);
}

.fc-num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient);
  color: var(--midnight);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.fc-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

.fc-given,
.fc-output {
  padding: 0.85rem 1.05rem;
  background: var(--midnight-2);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.fc-given-label,
.fc-output-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.fc-given-label { color: var(--text-dim); }
.fc-output-label { color: var(--pink); }

.fc-given p,
.fc-output p {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}

.fc-output p {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88rem;
}

.fc-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.fc-btn {
  flex: 1;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.fc-btn:hover:not(:disabled) {
  background: var(--panel-strong);
  transform: translateY(-1px);
}

.fc-btn.fact:hover:not(:disabled) {
  border-color: var(--turquoise);
  color: var(--turquoise);
}

.fc-btn.hallucination:hover:not(:disabled) {
  border-color: var(--pink);
  color: var(--pink);
}

.fc-btn:disabled {
  cursor: default;
  opacity: 0.5;
}

.fc-btn.picked {
  opacity: 1;
  font-weight: 700;
}

.fc-btn.picked.fact.is-correct,
.fc-btn.is-correct {
  background: rgba(23, 143, 170, 0.14);
  border-color: var(--turquoise);
  color: var(--turquoise);
  opacity: 1;
}

.fc-btn.picked:not(.is-correct) {
  background: rgba(97, 162, 41, 0.12);
  border-color: var(--pink);
  color: var(--pink);
  opacity: 1;
}

.fc-feedback {
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  animation: ecoFadeIn 0.35s var(--ease);
}

.fc-fb-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.fc-fb-tag.good {
  background: rgba(23, 143, 170, 0.16);
  color: var(--turquoise);
}

.fc-fb-tag.bad {
  background: rgba(97, 162, 41, 0.14);
  color: var(--pink);
}

.fc-feedback strong {
  display: inline;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}

.fc-feedback p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .fc-card {
    grid-template-columns: 1fr;
  }
  .fc-num {
    width: 40px;
    height: 40px;
  }
  .fc-actions {
    flex-direction: column;
  }
}

/* ============================================
   Prompt builder (Module 2)
   ============================================ */
.pb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 720px) {
  .pb-grid { grid-template-columns: 1fr; }
}

.pb-group {
  padding: 1.25rem 1.35rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pb-group h4 {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 0.35rem;
}

.pb-helper {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.pb-options {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pb-option {
  padding: 0.7rem 0.95rem;
  background: var(--midnight-2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  line-height: 1.4;
}

.pb-option:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--panel-strong);
}

.pb-option.selected {
  border-color: var(--turquoise);
  background: rgba(23, 143, 170, 0.1);
  color: var(--text);
  font-weight: 500;
}

.pb-preview-card {
  background: linear-gradient(160deg, rgba(23, 143, 170, 0.05), rgba(97, 162, 41, 0.03));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

.pb-preview-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: var(--radius) var(--radius) 0 0;
}

.pb-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.pb-preview-head strong {
  font-size: 0.95rem;
  color: var(--text);
}

.pb-preview-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pb-preview-actions .copy-btn {
  padding: 0.5rem 1rem;
  background: var(--gradient);
  color: var(--midnight);
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.25s var(--ease);
}

.pb-preview-actions .copy-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pb-preview {
  background: var(--midnight-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  white-space: pre-wrap;
  margin: 0;
}

.pb-preview em {
  color: var(--text-dim);
  font-style: italic;
}

.pb-tip {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.85rem;
}

/* ============================================
   Embedded use case canvas (Module 6)
   ============================================ */
.usecase-intro {
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.ucemb-howto {
  background: linear-gradient(160deg, rgba(23, 143, 170, 0.06), rgba(23, 143, 170, 0.02));
  border: 1px solid rgba(23, 143, 170, 0.25);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.ucemb-howto h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.ucemb-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ucemb-steps li {
  counter-increment: step;
  padding-left: 2.5rem;
  position: relative;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.ucemb-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  background: var(--gradient);
  color: var(--midnight);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.82rem;
}

.ucemb-tips-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.ucemb-label-main {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  letter-spacing: 0;
}

.ucemb-label-hint {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-dim);
  margin-bottom: 0.55rem;
  line-height: 1.45;
}

.ucemb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
}

@media (max-width: 820px) {
  .ucemb-grid { grid-template-columns: 1fr; }
}

.ucemb-tips {
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ucemb-tips h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.ucemb-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ucemb-tips li {
  padding-left: 1.3rem;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.ucemb-tips li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--turquoise);
  font-weight: 700;
}

.ucemb-form {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.ucemb-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
}

.ucemb-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.ucemb-form input,
.ucemb-form textarea {
  padding: 0.85rem 1.1rem;
  background: var(--midnight-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 400;
  resize: vertical;
  transition: border-color 0.25s var(--ease);
}

.ucemb-form input:focus,
.ucemb-form textarea:focus {
  outline: none;
  border-color: var(--turquoise);
}

.ucemb-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.ucemb-saved {
  font-size: 0.82rem;
  color: var(--turquoise);
  font-weight: 600;
}

/* ============================================
   Toolbox quiz + catalog (Module 4)
   ============================================ */
.toolbox-quiz-wrap {
  margin: 1.5rem 0;
}

.toolbox-quiz-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.toolbox-quiz-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.toolbox-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.toolbox-step-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  white-space: nowrap;
}

.toolbox-step-label strong {
  color: var(--turquoise);
}

.toolbox-rail {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.toolbox-rail-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 999px;
  transition: width 0.5s var(--ease);
  box-shadow: 0 0 12px var(--turquoise-glow);
}

.toolbox-q {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.toolbox-hint {
  font-size: 0.92rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.toolbox-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.toolbox-option {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.toolbox-option:hover {
  background: var(--panel-strong);
  border-color: var(--turquoise);
}

.toolbox-option.selected {
  background: rgba(23, 143, 170, 0.08);
  border-color: var(--turquoise);
}

.toolbox-option .opt-marker {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--panel-strong);
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--turquoise);
  flex-shrink: 0;
}

.toolbox-option.selected .opt-marker {
  background: var(--gradient);
  border-color: transparent;
  color: var(--midnight);
}

.toolbox-option .opt-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.toolbox-option .opt-text strong {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}

.toolbox-option .opt-text small {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.toolbox-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Result */
.toolbox-result-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.toolbox-result-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.toolbox-result-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.toolbox-result-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.55;
}

.toolbox-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.toolbox-result-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.toolbox-result-card.rank-1 {
  background: linear-gradient(135deg, rgba(23, 143, 170, 0.1), rgba(97, 162, 41, 0.06));
  border-color: var(--turquoise);
}

.toolbox-result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient);
}

.toolbox-rank {
  width: 56px;
  height: 56px;
  background: var(--gradient);
  color: var(--midnight);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
}

.toolbox-result-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.toolbox-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.toolbox-result-head h4 {
  font-size: 1.2rem;
  font-weight: 700;
}

.toolbox-result-score {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--turquoise);
  font-weight: 700;
}

.toolbox-result-vendor {
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.toolbox-result-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.toolbox-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.toolbox-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  background: rgba(23, 143, 170, 0.12);
  color: var(--turquoise);
  border: 1px solid rgba(23, 143, 170, 0.25);
  border-radius: 999px;
}

.toolbox-result-use {
  font-size: 0.88rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--turquoise);
  line-height: 1.55;
}

.toolbox-result-use strong {
  color: var(--text);
}

/* Catalog */
.toolbox-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.toolbox-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.toolbox-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.toolbox-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.toolbox-card-head h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.toolbox-card-vendor {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.toolbox-card-pricing {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.toolbox-card-pricing.free {
  background: rgba(23, 143, 170, 0.15);
  color: var(--turquoise);
}

.toolbox-card-pricing.freemium {
  background: rgba(23, 143, 170, 0.15);
  color: var(--purple);
}

.toolbox-card-pricing.paid {
  background: rgba(97, 162, 41, 0.15);
  color: var(--pink);
}

.toolbox-card p {
  font-size: 0.88rem;
  line-height: 1.5;
}

.toolbox-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.meta-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.meta-pill.ok {
  background: rgba(23, 143, 170, 0.1);
  color: var(--turquoise);
  border-color: rgba(23, 143, 170, 0.25);
}

.meta-pill.warn {
  background: rgba(97, 162, 41, 0.08);
  color: var(--pink);
  border-color: rgba(97, 162, 41, 0.2);
}

.toolbox-card-use {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

.toolbox-card-use strong {
  color: var(--text);
}

@media (max-width: 600px) {
  .toolbox-result-card {
    grid-template-columns: 1fr;
  }
  .toolbox-rank {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}

/* ============================================
   Use case canvas
   ============================================ */
.usecase-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.usecase-summary {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.usecase-summary strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.usecase-summary span {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.usecase-summary.filled {
  border-color: var(--turquoise);
  background: rgba(23, 143, 170, 0.08);
}

.usecase-summary.filled strong {
  color: var(--turquoise);
}

/* Use case — vygenerovaný prompt + posúdenie (na svetlej sekcii) */
.usecase-guide { border-left-color: #178faa !important; }
.usecase-summary.filled { background: #fff; border-color: var(--ok-border-light); }
.usecase-summary.filled .uc-result-head { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 0.7rem; }
.usecase-summary.filled .uc-result-head > strong { display: block; font-size: 1.1rem; color: var(--ok-ink); margin: 0; }
.usecase-summary.filled .uc-verdict { display: block; font-size: 0.92rem; color: #178faa; font-weight: 600; }

/* Use case — výsledok vnoreného canvasu (modul 7, tmavá stránka → svetlá karta) */
.ucemb-result { margin-top: 1.5rem; background: #fff; border: 1px solid var(--ok-border-light); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.ucemb-result .uc-result-head { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 0.7rem; }
.ucemb-result .uc-result-head > strong { display: block; font-size: 1.1rem; color: var(--ok-ink); margin: 0; }
.ucemb-result .uc-verdict { display: block; font-size: 0.92rem; color: #178faa; font-weight: 600; }
.ucemb-result .uc-checks { list-style: none; margin: 0 0 0.9rem; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.ucemb-result .uc-checks li { font-size: 0.88rem; color: var(--ok-ink); }
.ucemb-result .uc-checks .uc-ok { color: #1a8f4e; }
.ucemb-result .uc-checks .uc-no { color: var(--ok-muted); }
.ucemb-result .uc-prompt { border: 1px solid var(--ok-border-light); border-radius: 12px; overflow: hidden; background: #fff; }
.ucemb-result .uc-prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.6rem 0.85rem; background: var(--ok-offwhite, #fafafa); border-bottom: 1px solid var(--ok-border-light); font-size: 0.85rem; font-weight: 700; color: var(--ok-ink); }
.ucemb-result .uc-copy { background: var(--turquoise); color: #fff; border: none; padding: 0.42rem 0.9rem; border-radius: 8px; font-family: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; flex: 0 0 auto; }
.ucemb-result .uc-copy:hover { filter: brightness(1.08); }
.ucemb-result .uc-prompt pre { margin: 0; padding: 0.85rem; font-size: 0.82rem; line-height: 1.5; white-space: pre-wrap; color: var(--ok-ink); font-family: ui-monospace, SFMono-Regular, monospace; max-height: 260px; overflow: auto; }
.ucemb-result .uc-tip { font-size: 0.82rem; color: var(--ok-muted); margin-top: 0.75rem; line-height: 1.45; }
.ucemb-result .uc-tip strong { color: var(--ok-ink); }
.ucemb-result-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
.ucemb-result-actions .button { font-size: 0.85rem; padding: 0.5rem 1rem; color: var(--ok-ink); border: 1px solid var(--ok-border-light); border-radius: 999px; background: var(--ok-offwhite, #fafafa); }
.ucemb-result-actions .button:hover { border-color: var(--turquoise); color: var(--turquoise); }
.usecase-summary.filled .uc-checks { list-style: none; margin: 0 0 0.9rem; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.usecase-summary.filled .uc-checks li { font-size: 0.88rem; color: var(--ok-ink); }
.usecase-summary.filled .uc-checks .uc-ok { color: #1a8f4e; }
.usecase-summary.filled .uc-checks .uc-no { color: var(--ok-muted); }
.usecase-summary.filled .uc-prompt { border: 1px solid var(--ok-border-light); border-radius: 12px; overflow: hidden; background: #fff; }
.usecase-summary.filled .uc-prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.6rem 0.85rem; background: var(--ok-offwhite, #fafafa); border-bottom: 1px solid var(--ok-border-light); font-size: 0.85rem; font-weight: 700; color: var(--ok-ink); }
.usecase-summary.filled .uc-copy { background: var(--turquoise); color: #fff; border: none; padding: 0.42rem 0.9rem; border-radius: 8px; font-family: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; flex: 0 0 auto; }
.usecase-summary.filled .uc-copy:hover { filter: brightness(1.08); }
.usecase-summary.filled .uc-prompt pre { margin: 0; padding: 0.85rem; font-size: 0.82rem; line-height: 1.5; white-space: pre-wrap; color: var(--ok-ink); font-family: ui-monospace, SFMono-Regular, monospace; max-height: 260px; overflow: auto; }
.usecase-summary.filled .uc-tip { font-size: 0.82rem; color: var(--ok-muted); margin-top: 0.75rem; line-height: 1.45; }
.usecase-summary.filled .uc-tip strong { color: var(--ok-ink); }

.usecase-form {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.usecase-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
}

.usecase-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.usecase-form input,
.usecase-form textarea {
  padding: 0.85rem 1.1rem;
  background: var(--midnight-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 400;
  resize: vertical;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.usecase-form input:focus,
.usecase-form textarea:focus {
  outline: none;
  border-color: var(--turquoise);
}

.usecase-form input::placeholder,
.usecase-form textarea::placeholder {
  color: var(--text-dim);
  font-weight: 300;
}

/* ============================================
   Checklist (legacy — generic checkbox grid)
   ============================================ */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}

.checklist-grid label {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.35rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.checklist-grid label:hover {
  background: var(--panel-strong);
  border-color: var(--border-strong);
}

.checklist-grid label:has(input:checked) {
  background: rgba(23, 143, 170, 0.08);
  border-color: var(--turquoise);
  color: var(--text);
}

.checklist-grid input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-strong);
  border-radius: 6px;
  background: var(--midnight-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
  margin-top: 1px;
}

.checklist-grid input[type="checkbox"]:checked {
  background: var(--gradient);
  border-color: transparent;
}

.checklist-grid input[type="checkbox"]:checked::after {
  content: "✓";
  color: var(--midnight);
  font-weight: 800;
  font-size: 0.85rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(22, 29, 24, 0.6));
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-logo-link {
  display: inline-block;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  text-decoration: none;
}

.footer-logo-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.footer-logo-link:focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 4px;
  border-radius: 4px;
}

.footer-logo {
  height: 28px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-dim);
  max-width: 36ch;
}

.footer-client-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-client-logo {
  height: 64px;
  width: auto;
  max-width: 230px;
  background: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  justify-self: center;
  object-fit: contain;
}

.footer-grid p:last-child {
  text-align: right;
  font-size: 0.82rem;
}

/* ============================================
   Modal (Agenda)
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1.5rem 2rem;
  overflow-y: auto;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 3, 12, 0.75);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: 100%;
  background: var(--midnight-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  animation: fadeUp 0.4s var(--ease);
}

.modal-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
}

.modal-close:hover {
  background: var(--panel-strong);
  color: var(--text);
  transform: rotate(90deg);
}

.modal-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turquoise);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.modal-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Agenda timeline inside modal */
.agenda-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
}

.agenda-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: inherit;
  text-align: left;
}

.agenda-item:hover,
.agenda-item:focus-visible {
  background: var(--panel-strong);
  border-color: var(--turquoise);
  outline: none;
}

.agenda-item time {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: var(--gradient);
  color: var(--midnight);
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.agenda-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.agenda-item p {
  font-size: 0.85rem;
  line-height: 1.45;
}

/* ============================================
   Toast
   ============================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 0.85rem 1.5rem;
  background: var(--gradient);
  color: var(--midnight);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 14px 30px rgba(97, 162, 41, 0.3);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   Reveal animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .hero-bg::before, .hero-bg::after { animation: none; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .section-heading.split,
  .usecase-panel {
    grid-template-columns: 1fr;
  }

  .module-layout {
    grid-template-columns: 1fr;
  }

  .module-sidebar {
    position: relative;
    top: auto;
    max-height: none;
    margin-bottom: 1.5rem;
  }

  .module-toc {
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }

  .module-toc a {
    flex: 1 1 calc(50% - 0.2rem);
    min-width: 0;
  }

  .module-prev-next {
    flex-direction: row;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
  }

  .module-prev-next a,
  .module-prev-next button {
    flex: 1;
  }
}

@media (max-width: 760px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .brand strong {
    font-size: 1.05rem;
  }

  .brand small {
    font-size: 0.78rem;
  }

  .brand-logo {
    height: 24px;
    max-width: 110px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, auto);
    gap: 1.25rem;
  }

  .test-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-grid p:last-child {
    text-align: center;
  }

  .modal {
    padding: 5rem 1rem 2rem;
  }

  .modal-panel {
    padding: 2rem 1.5rem;
  }

  .agenda-item {
    grid-template-columns: 56px 1fr;
  }

  .agenda-item time {
    width: 56px;
    height: 56px;
    font-size: 0.78rem;
  }

  .module-bottom-nav {
    grid-template-columns: 1fr;
  }

  .module-hero h1 {
    font-size: clamp(1.7rem, 6vw, 2.5rem);
  }

  .module-section-block h2 {
    font-size: clamp(1.35rem, 5vw, 1.8rem);
  }

  .name-input-row {
    grid-template-columns: 1fr;
  }

  .breadcrumb {
    font-size: 0.78rem;
  }

  .breadcrumb .current {
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand-logo {
    height: 22px;
    max-width: 96px;
  }

  .test-question-card,
  .test-result-card,
  .test-intro {
    padding: 1.5rem 1.25rem;
  }

  .test-stats {
    grid-template-columns: 1fr 1fr;
  }

  .score-ring {
    width: 160px;
    height: 160px;
  }

  .score-ring .score-value strong {
    font-size: 2.4rem;
  }

  .test-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .test-actions .left,
  .test-actions .right {
    width: 100%;
    flex-direction: column;
  }

  .test-actions .button {
    width: 100%;
    justify-content: center;
  }

  .module-toc a {
    flex: 1 1 100%;
  }

  .module-prev-next {
    flex-direction: column !important;
  }

  .level-cards {
    grid-template-columns: 1fr;
  }

  .certificate {
    padding: 2rem 1.5rem;
  }

  .cert-title {
    font-size: 1.6rem;
  }

  .cert-name {
    font-size: 1.6rem;
  }

  .cert-meta {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Čitateľnosť modrých textov (kontrast + výraznosť)
   ============================================ */
/* Eyebrows výraznejšie všade */
.eyebrow { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; }

/* Svetlé sekcie — sýtejšia tmavomodrá pre pop na bielom */
.section--light .eyebrow, .section--lavender .eyebrow,
.section--light a:not(.button):not(.nav-toolbox), .section--lavender a:not(.button) { color: #178faa; }
.usecase-example-tag { color: #178faa; font-size: 0.8rem; font-weight: 800; }

/* Tmavé sekcie / pop-okná — svetlejší, čitateľnejší odtieň modrej */
#module-view a:not(.button), #ekosystemy-view a:not(.button), #node-modal a:not(.button), .sim-page a:not(.button),
.insight-label,
.sim-bar-tag, .sim-who-ai, .sim-block-title, .sim-turn-cue, .sim-diff-num,
.segment-card-body small { color: #8fd14f; }
.insight-label { font-size: 0.75rem; }
.segment-card-body small { font-size: 0.82rem; }
