/* Přijato! – prezentační stránka. Barvy a písma stejné jako v aplikaci. */
:root {
  --bg: #0f0b1d;
  --bg-2: #161028;
  --surface: #1a1530;
  --surface-2: #241d40;
  --line: #2f2752;
  --ink: #f3f0ff;
  --ink-2: #b3abd3;
  --primary: #9b7bff;
  --primary-deep: #6d3cf0;
  --lime: #c4f75a;
  --lime-ink: #1b2a00;
  --pink: #ff8fb1;
  --ok: #4bd68a;
  --head: "Nunito", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  font-family: var(--head);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h2 {
  font-size: clamp(34px, 5.4vw, 64px);
}
p {
  margin: 0;
}
a {
  color: inherit;
}
.accent {
  color: var(--lime);
}
.muted {
  color: var(--ink-2);
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 34ch;
}
.eyebrow {
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
  margin-bottom: 14px;
}

/* ───────── tlačítka ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--head);
  font-weight: 900;
  font-size: 17px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}
.btn:active {
  transform: translateY(2px) scale(0.98);
}
.btn-lime {
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 6px 0 #7fae1f, 0 18px 40px -12px rgb(196 247 90 / 0.55);
}
.btn-lime:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #7fae1f, 0 24px 50px -12px rgb(196 247 90 / 0.65);
}
.btn-ghost {
  background: rgb(255 255 255 / 0.06);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 2px var(--primary);
}
.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
  box-shadow: 0 4px 0 #7fae1f;
}
.btn-block {
  width: 100%;
}
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

/* ───────── navigace ───────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav.solid {
  background: rgb(15 11 29 / 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--head);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.logo b {
  color: var(--lime);
}
.logo-profa svg {
  width: 36px;
  height: 36px;
}

/* ───────── Profa ───────── */
.profa-slot {
  display: inline-block;
  line-height: 0;
}
.profa {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.profa .pupils {
  transition: transform 0.18s var(--ease);
}
.profa .mouth {
  opacity: 0;
  transition: opacity 0.2s;
}
.profa[data-mood="happy"] .m-happy,
.profa:not([data-mood]) .m-happy,
.profa[data-mood="wow"] .m-wow,
.profa[data-mood="think"] .m-think {
  opacity: 1;
}
.profa .lid {
  transition: height 0.09s ease-in;
}
.profa.blink .lid {
  height: 28px;
}
/* čepice by na tmavém pozadí splynula – jemný obrys */
.profa .cap > path,
.profa .cap > rect {
  stroke: #4a3d85;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.profa .tassel {
  transform-origin: 78px 18px;
  animation: tassel 3s ease-in-out infinite;
}
@keyframes tassel {
  50% {
    transform: rotate(-12deg);
  }
}
.profa-slot.big svg {
  width: clamp(220px, 32vw, 420px);
  height: auto;
}
.profa-slot.huge svg {
  width: clamp(200px, 30vw, 380px);
  height: auto;
}
.profa-slot.mini svg {
  width: 30px;
  height: 30px;
}

/* ───────── hero ───────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 24px;
  padding: 110px clamp(20px, 6vw, 90px) 80px;
  overflow: hidden;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.g1 {
  width: 620px;
  height: 620px;
  background: #5b2ee0;
  opacity: 0.45;
  right: -140px;
  top: 0;
  transform: translateY(calc(var(--p, 0) * 160px));
}
.g2 {
  width: 380px;
  height: 380px;
  background: #b6f23a;
  opacity: 0.12;
  left: -120px;
  bottom: -60px;
}
.g3 {
  width: 700px;
  height: 500px;
  background: #5b2ee0;
  opacity: 0.35;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
}
.floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.floaters span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(18px, 2.2vw, 30px);
  color: rgb(255 255 255 / 0.13);
  transform: translate3d(calc(var(--mx, 0) * var(--d) * 18px), calc(var(--my, 0) * var(--d) * 18px + var(--p, 0) * var(--d) * -260px), 0)
    rotate(calc(var(--p, 0) * var(--d) * 40deg));
  will-change: transform;
}
.hero-inner {
  position: relative;
  z-index: 2;
  transform: translateY(calc(var(--p, 0) * -120px));
  opacity: calc(1 - var(--p, 0) * 1.4);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 26px;
}
.kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgb(196 247 90 / 0.6);
  animation: ping 2s infinite;
}
@keyframes ping {
  70% {
    box-shadow: 0 0 0 10px rgb(196 247 90 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(196 247 90 / 0);
  }
}
.hero-title {
  font-size: clamp(52px, 9vw, 128px);
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 0.9s var(--ease) forwards;
}
.hero-title .line.accent > span {
  animation-delay: 0.12s;
}
@keyframes rise {
  to {
    transform: none;
  }
}
.lead {
  margin-top: 26px;
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--ink-2);
  max-width: 34ch;
  opacity: 0;
  animation: fade 0.8s 0.35s var(--ease) forwards;
}
.lead b {
  color: var(--ink);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  opacity: 0;
  animation: fade 0.8s 0.5s var(--ease) forwards;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-profa {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  transform: translateY(calc(var(--p, 0) * 140px)) scale(calc(1 + var(--p, 0) * 0.25)) rotate(calc(var(--p, 0) * -8deg));
  animation: pop 1s 0.2s var(--ease) both;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-10deg);
  }
}
.hero-profa .profa-slot {
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-16px);
  }
}
.hero-profa .shadow {
  width: 55%;
  height: 26px;
  margin-top: 10px;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.45);
  filter: blur(8px);
  animation: shadow 5s ease-in-out infinite;
}
@keyframes shadow {
  50% {
    transform: scale(0.85);
    opacity: 0.7;
  }
}
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  opacity: calc(1 - var(--p, 0) * 6);
}
.scroll-hint span {
  width: 26px;
  height: 40px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px var(--ink-2);
  position: relative;
}
.scroll-hint span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--lime);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel {
  60% {
    transform: translateY(12px);
    opacity: 0;
  }
}

/* ───────── scény na scroll ───────── */
.scene {
  position: relative;
  height: var(--len, 300vh);
}
.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
}
[data-at] {
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), filter 0.5s;
}

/* scéna 1 */
.meet-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.meet-profa {
  display: grid;
  place-items: center;
  transform: translateX(calc((1 - var(--sp, 0)) * 50%)) scale(calc(0.8 + var(--sp, 0) * 0.2)) rotate(calc(sin(var(--sp, 0) * 12) * 4deg));
}
.bubbles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bubble {
  position: relative;
  padding: 18px 22px;
  border-radius: 24px 24px 24px 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -20px rgb(0 0 0 / 0.6);
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 500;
  opacity: 0;
  transform: translateY(30px) scale(0.94);
  filter: blur(6px);
}
.bubble b {
  color: var(--lime);
}
.bubble.on {
  opacity: 1;
  transform: none;
  filter: none;
}
.bubble.on:last-of-type,
.bubble.latest {
  background: var(--primary-deep);
  box-shadow: 0 24px 50px -20px rgb(109 60 240 / 0.8);
}
.progress-dots {
  position: absolute;
  right: clamp(14px, 3vw, 40px);
  top: 50%;
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.progress-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.3s, transform 0.3s;
}
.progress-dots i.on {
  background: var(--lime);
  transform: scale(1.4);
}

/* scéna 2 */
.task-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.task-copy h2 {
  margin-bottom: 18px;
}
.task-steps-legend {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 12px;
  counter-reset: s;
}
.task-steps-legend li {
  counter-increment: s;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  color: var(--ink-2);
  opacity: 0.4;
}
.task-steps-legend li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--line);
  font-family: var(--head);
  font-weight: 900;
}
.task-steps-legend li.on {
  opacity: 1;
  color: var(--ink);
}
.task-steps-legend li.on::before {
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: none;
}
.phone-wrap {
  position: relative;
  perspective: 1400px;
}
.phone {
  position: relative;
  width: min(340px, 82vw);
  height: min(680px, 78svh);
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(145deg, #2c2450, #120d22);
  box-shadow: 0 0 0 2px #3a3166, 0 60px 120px -40px rgb(91 46 224 / 0.7), 0 30px 60px -30px rgb(0 0 0 / 0.8);
  transform: rotateY(calc(-18deg + var(--sp, 0) * 30deg)) rotateX(calc(8deg - var(--sp, 0) * 10deg)) translateY(calc((1 - min(var(--sp, 0) * 5, 1)) * 80px));
  transform-style: preserve-3d;
}
.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  translate: -50% 0;
  width: 90px;
  height: 24px;
  border-radius: 20px;
  background: #000;
  z-index: 3;
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  background: var(--bg);
  overflow: hidden;
  padding: 54px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.app-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 13px;
}
.app-top .x {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--surface-2);
}
.app-top .bar {
  flex: 1;
  height: 8px;
  border-radius: 9px;
  background: var(--surface-2);
  overflow: hidden;
}
.app-top .bar i {
  display: block;
  height: 100%;
  width: calc(var(--sp, 0) * 100%);
  background: var(--primary);
  border-radius: 9px;
}
.chip {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: #2b2155;
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
}
.meta {
  color: var(--ink-2);
  font-size: 12px;
}
.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.task-card .q {
  font-weight: 700;
}
.expr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
  font-size: 22px;
  font-family: var(--head);
}
.frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  line-height: 1.1;
  font-family: var(--head);
  font-weight: 800;
}
.frac > span:first-child {
  border-bottom: 2px solid currentColor;
  padding: 0 3px 1px;
}
.frac > span:last-child {
  padding: 1px 3px 0;
}
.answer {
  position: relative;
  min-height: 52px;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--line);
  display: grid;
  place-items: center;
  transition: box-shadow 0.4s, background 0.4s;
}
.answer .ph {
  color: #5d5680;
  font-size: 13px;
}
.answer .val {
  position: absolute;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s, transform 0.5s var(--ease);
  font-size: 18px;
  color: var(--lime);
}
.scene-task.solved .answer {
  box-shadow: inset 0 0 0 2px var(--ok);
  background: #143524;
}
.scene-task.solved .answer .ph {
  opacity: 0;
}
.scene-task.solved .answer .val {
  opacity: 1;
  transform: none;
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.msg,
.step {
  opacity: 0;
  transform: translateY(16px);
}
.msg.on,
.step.on {
  opacity: 1;
  transform: none;
}
.msg.me {
  align-self: flex-end;
  padding: 8px 14px;
  border-radius: 16px 16px 4px 16px;
  background: var(--primary-deep);
  font-weight: 600;
}
.msg.profa {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.msg.profa p {
  padding: 8px 12px;
  border-radius: 4px 16px 16px 16px;
  background: var(--surface-2);
}
.msg.profa b {
  color: var(--lime);
}
.step {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
}
.step > b {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #120a2b;
  font-size: 12px;
}
.step > span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.success {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  box-shadow: inset 0 0 0 2px var(--ok), 0 -20px 40px 10px var(--bg);
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: #143524;
  opacity: 0;
  transform: translateY(120%);
}
.success.on {
  opacity: 1;
  transform: none;
}
.success b {
  display: block;
  font-family: var(--head);
  font-size: 16px;
}
.success small {
  color: var(--ink-2);
}
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.confetti i {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
}
.scene-task.solved .confetti i {
  animation: burst 1.4s var(--ease) forwards;
}
@keyframes burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) rotate(var(--r));
  }
}

/* scéna 3 */
.scene-path .sticky {
  align-content: center;
  gap: 10px;
  padding: 80px clamp(20px, 5vw, 60px) 30px;
}
.path-head {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.path-head .muted {
  max-width: 46ch;
}
.path-stage {
  position: relative;
  width: min(1000px, 100%);
  aspect-ratio: 1000 / 560;
  margin: 0 auto;
}
.path-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.path-svg .track {
  fill: none;
  stroke: var(--line);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 2 26;
}
.path-svg .trail {
  fill: none;
  stroke: url(#none);
  stroke: var(--lime);
  stroke-width: 14;
  stroke-linecap: round;
  filter: drop-shadow(0 0 14px rgb(196 247 90 / 0.5));
}
.nodes .node {
  position: absolute;
  translate: -50% -50%;
  display: grid;
  justify-items: center;
  gap: 6px;
}
.node .dot {
  display: grid;
  place-items: center;
  width: clamp(30px, 4.4vw, 52px);
  height: clamp(30px, 4.4vw, 52px);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--line);
  color: var(--ink-2);
  transition: background 0.4s, box-shadow 0.4s, transform 0.5s var(--ease), color 0.3s;
}
.node .dot svg {
  width: 55%;
  height: 55%;
}
.node.boss .dot {
  border-radius: 50%;
}
.node .lbl {
  font-size: clamp(10px, 1.2vw, 14px);
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.3s;
}
.node.on .dot {
  background: var(--primary-deep);
  box-shadow: 0 10px 30px -8px rgb(109 60 240 / 0.9);
  color: #fff;
  transform: scale(1.12);
}
.node.boss.on .dot {
  background: #ffb44d;
  color: #2a1a00;
  box-shadow: 0 10px 30px -8px rgb(255 180 77 / 0.9);
}
.node.goal.on .dot {
  background: var(--lime);
  color: var(--lime-ink);
}
.node.on .lbl {
  color: var(--ink);
}
.walker {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% -110%;
  z-index: 3;
  filter: drop-shadow(0 10px 14px rgb(0 0 0 / 0.5));
}
.walker .profa-slot.mini svg {
  width: clamp(38px, 5vw, 64px);
  height: auto;
}
.path-hud {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 4vw, 50px);
  margin-top: 6px;
}
.path-hud div {
  display: grid;
  justify-items: center;
}
.path-hud b {
  font-family: var(--head);
  font-size: clamp(22px, 3vw, 36px);
}
.path-hud span {
  font-size: 13px;
  color: var(--ink-2);
}

/* scéna 4 */
.scene-features .sticky {
  grid-template-columns: 100%;
  align-content: center;
  gap: 40px;
}
.feat-head {
  padding: 0 clamp(20px, 6vw, 90px);
}
.feat-track {
  justify-self: start;
  display: flex;
  gap: 22px;
  padding: 0 clamp(20px, 6vw, 90px);
  width: max-content;
  transform: translateX(calc(var(--fp, 0) * var(--shift, 0px) * -1));
  will-change: transform;
}
.feat {
  width: clamp(260px, 30vw, 380px);
  min-height: clamp(260px, 34vh, 330px);
  padding: 30px;
  border-radius: 32px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: rotate(calc((var(--i, 0) - 2.5) * 1deg));
}
.feat h3 {
  font-size: clamp(24px, 2.4vw, 32px);
}
.feat p {
  color: var(--ink-2);
}
.feat.lime {
  background: var(--lime);
  color: var(--lime-ink);
}
.feat.lime p {
  color: #3a4d10;
}
.feat.pink {
  background: #ff8fb1;
  color: #3d0f20;
}
.feat.pink p {
  color: #5c1e33;
}
.feat .num {
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(64px, 7vw, 96px);
  line-height: 1;
  color: var(--lime);
}
.feat .ico {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgb(0 0 0 / 0.12);
}
.feat:not(.lime):not(.pink) .ico {
  background: #2b2155;
  color: var(--primary);
}
.feat .ico svg {
  width: 30px;
  height: 30px;
}
.feat-bar {
  margin: 0 clamp(20px, 6vw, 90px);
  height: 6px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
}
.feat-bar i {
  display: block;
  height: 100%;
  width: calc(var(--fp, 0) * 100%);
  background: var(--lime);
}

/* ───────── waitlist ───────── */
.waitlist {
  position: relative;
  padding: 120px clamp(20px, 5vw, 60px);
  overflow: hidden;
}
.wl-card {
  position: relative;
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(20px, 5vw, 60px);
  padding: clamp(26px, 5vw, 60px);
  border-radius: 40px;
  background: linear-gradient(160deg, rgb(36 29 64 / 0.92), rgb(22 16 40 / 0.92));
  box-shadow: inset 0 0 0 1px var(--line), 0 50px 120px -40px rgb(91 46 224 / 0.6);
}
.wl-profa {
  display: grid;
  place-items: center;
}
.wl-profa .profa-slot.big svg {
  width: clamp(160px, 24vw, 300px);
}
.wl-body h2 {
  margin-bottom: 14px;
}
.wl-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.field {
  display: grid;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}
.field input {
  min-height: 58px;
  padding: 0 20px;
  border-radius: 18px;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  box-shadow: inset 0 0 0 2px var(--line);
  outline: none;
  transition: box-shadow 0.2s;
}
.field input:focus {
  box-shadow: inset 0 0 0 2px var(--primary), 0 0 0 5px rgb(155 123 255 / 0.2);
}
.field input.bad {
  box-shadow: inset 0 0 0 2px #ff7189;
}
.roles {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.roles legend {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}
.roles label {
  cursor: pointer;
}
.roles input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.roles span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--line);
  font-weight: 700;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.roles input:checked + span {
  background: var(--primary-deep);
  box-shadow: none;
}
.roles input:focus-visible + span {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}
.consent input {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--lime);
  flex: none;
}
.consent.bad span {
  color: #ff7189;
}
.form-msg {
  min-height: 24px;
  font-weight: 700;
}
.form-msg.ok {
  color: var(--lime);
}
.form-msg.err {
  color: #ff7189;
}
.wl-form.done .field,
.wl-form.done .roles,
.wl-form.done .consent,
.wl-form.done button {
  display: none;
}
.wl-form.done .form-msg {
  font-size: 22px;
  font-family: var(--head);
}

/* ───────── patička ───────── */
.foot {
  padding: 50px clamp(20px, 5vw, 60px) 60px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  color: var(--ink-2);
  font-size: 14px;
}
.foot .small {
  font-size: 12px;
  opacity: 0.8;
}

/* ───────── mobil ───────── */
@media (max-width: 820px) {
  body {
    font-size: 16px;
  }
  .scroll-hint,
  .progress-dots {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
    gap: 0;
  }
  .hero-inner {
    order: 2;
  }
  .hero-profa {
    order: 1;
  }
  .profa-slot.big svg {
    width: 190px;
  }
  .lead {
    margin-inline: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .meet-stage {
    grid-template-columns: 1fr;
    gap: 18px;
    align-content: center;
  }
  .meet-profa {
    transform: scale(calc(0.85 - var(--sp, 0) * 0.2)) translateY(calc(var(--sp, 0) * -10px));
  }
  .profa-slot.huge svg {
    width: 150px;
  }
  .bubble {
    font-size: 17px;
    padding: 14px 18px;
  }
  .task-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }
  .task-copy {
    text-align: center;
  }
  .task-copy h2 {
    font-size: 30px;
    margin-bottom: 0;
  }
  .task-copy .muted,
  .task-steps-legend {
    display: none;
  }
  .task-copy .eyebrow {
    margin-bottom: 6px;
  }
  .phone {
    height: min(560px, 74svh);
    width: min(310px, 84vw);
  }
  .path-hud {
    gap: 18px;
  }
  .node .lbl {
    display: none;
  }
  .node.on.current .lbl {
    display: block;
  }
  .wl-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .wl-profa .profa-slot.big svg {
    width: 150px;
  }
  .roles {
    justify-content: center;
  }
  .consent {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ───────── scéna 5: čas běží ───────── */
.count-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.days-grid {
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  gap: clamp(3px, 0.5vw, 7px);
}
.days-grid i {
  aspect-ratio: 1;
  border-radius: 30%;
  background: var(--primary-deep);
  transition: background 0.35s, transform 0.35s var(--ease), opacity 0.35s;
}
.days-grid i.gone {
  background: var(--surface-2);
  transform: scale(0.55);
  opacity: 0.5;
}
.days-grid i.today {
  background: var(--lime);
  box-shadow: 0 0 18px rgb(196 247 90 / 0.8);
}
.count-num {
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(110px, 16vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 20px 60px rgb(196 247 90 / 0.25);
}
.count-label {
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 34px);
  margin-top: 6px;
}
.count-lines {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-2);
}
.count-lines li {
  opacity: 0;
  transform: translateY(16px);
}
.count-lines li.on {
  opacity: 1;
  transform: none;
}
.count-lines b {
  color: var(--ink);
}
.count-cta {
  margin-top: 28px;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
}
.count-cta.on {
  opacity: 1;
  transform: none;
}

/* ───────── waitlist: výhody ───────── */
.perks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}
.perks li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 500;
}
.perks .tick {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 900;
  font-size: 14px;
}
.perks b {
  color: var(--lime);
}
.scarcity {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgb(255 180 77 / 0.12);
  color: #ffb44d;
  font-weight: 700;
  font-size: 15px;
}

/* ───────── putovní lišta ───────── */
.cta-bar {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: rgb(26 21 48 / 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px -14px rgb(0 0 0 / 0.7);
  translate: -50% 140%;
  transition: translate 0.5s var(--ease);
  white-space: nowrap;
  font-size: 15px;
}
.cta-bar.show {
  translate: -50% 0;
}
.cta-bar .cd-days {
  font-family: var(--head);
  font-size: 20px;
  color: var(--lime);
}

@media (max-width: 820px) {
  .count-stage {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 18px;
  }
  .days-grid {
    grid-template-columns: repeat(30, 1fr);
    gap: 2px;
    order: 2;
  }
  .count-lines {
    margin-top: 14px;
  }
  .perks {
    width: fit-content;
    margin-inline: auto;
    text-align: left;
  }
  .cta-bar {
    font-size: 13px;
    padding-left: 14px;
  }
}

/* past na roboty: pole skryté lidem i čtečkám */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ───────── malé displeje: nic se nesmí uříznout ───────── */
.bubble.old {
  display: none;
}
@media (max-width: 820px) {
  /* místo pro putovní lištu dole */
  .sticky {
    padding-bottom: 76px;
    box-sizing: border-box;
  }
  .node .lbl {
    font-size: 12px;
  }
  .foot .small {
    font-size: 13px;
  }
  .logo {
    min-height: 44px;
  }
}
@media (max-width: 820px) and (max-height: 700px) {
  .profa-slot.huge svg {
    width: 110px;
  }
  .bubble {
    font-size: 15px;
    padding: 12px 15px;
  }
  .meet-stage {
    gap: 12px;
  }
  .phone {
    height: min(480px, 66svh);
  }
  .task-copy h2 {
    font-size: 24px;
  }
  .count-num {
    font-size: 96px;
  }
  .count-lines {
    font-size: 15px;
    gap: 8px;
  }
  .count-cta {
    margin-top: 16px;
  }
  .profa-slot.big svg {
    width: 150px;
  }
}

@media (max-width: 820px) {
  .scene-path .sticky {
    padding: 64px 16px 84px;
  }
  .scene-features .sticky {
    gap: 22px;
  }
}
@media (max-width: 820px) and (max-height: 700px) {
  .path-head .muted,
  .scene-path .eyebrow {
    display: none;
  }
  .path-head h2,
  .feat-head h2 {
    font-size: 28px;
  }
  .path-hud b {
    font-size: 20px;
  }
  .scene-features .sticky {
    gap: 14px;
    padding-top: 56px;
  }
  .feat {
    min-height: 0;
    padding: 20px;
    gap: 8px;
  }
  .feat h3 {
    font-size: 22px;
  }
  .feat .num {
    font-size: 56px;
  }
  .feat .ico {
    width: 44px;
    height: 44px;
  }
}

/* ───────── velmi nízké obrazovky (telefon na šířku) a stránka bez skriptu:
   scény bez přišpendlení, obsah normálně pod sebou a celý viditelný ───────── */
@media (max-height: 500px) {
  .scene {
    height: auto !important;
  }
  .sticky {
    position: relative;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 72px 20px 96px !important;
  }
  .scene [data-at],
  .scene .bubble,
  .scene .msg,
  .scene .step,
  .scene .success {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .bubble.old {
    display: block;
  }
  .profa-slot.huge svg,
  .profa-slot.big svg {
    width: 120px;
  }
  .meet-profa,
  .phone {
    transform: none !important;
  }
  .phone {
    height: 400px;
  }
  .feat-track {
    transform: none !important;
    width: auto;
    max-width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .feat {
    scroll-snap-align: start;
    flex: none;
  }
  .feat-bar,
  .progress-dots,
  .scroll-hint {
    display: none;
  }
}

/* ───────── záložka Pro rodiče a učitele, upozornění v patičce ───────── */
.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.nav-tab {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(26 21 48 / 0.7);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.15;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.nav-tab:hover,
.nav-tab:focus-visible {
  border-color: var(--lime);
  background: var(--surface-2);
}
.parent-hint {
  font-size: 14px;
  color: var(--ink-2);
  margin: -4px 0 2px;
}
.consent a,
.foot a {
  color: var(--lime);
}
.foot .disclaimer {
  font-weight: 800;
  color: var(--ink);
  font-size: 16px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
}
.foot-links a {
  color: var(--ink-2);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.todo {
  background: #ffe066;
  color: #1b1530 !important;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 700;
}
@media (max-width: 560px) {
  .nav-left {
    gap: 8px;
  }
  .logo-text {
    display: none;
  }
  .nav-tab {
    font-size: 13px;
    padding: 6px 12px;
    max-width: 150px;
  }
}
@media (max-width: 380px) {
  .nav {
    padding-left: 12px;
    padding-right: 12px;
  }
  .nav-tab {
    font-size: 12px;
    padding: 5px 10px;
    max-width: 120px;
  }
  .nav .btn-sm {
    white-space: nowrap;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 14px;
  }
}

/* ───────── scéna s Profou na mobilu: všechny čtyři bubliny vidět najednou ───────── */
@media (max-width: 820px) {
  .scene-meet .meet-stage {
    gap: 10px;
    padding: 0 16px;
  }
  .scene-meet .meet-profa {
    transform: none;
  }
  .scene-meet .profa-slot.huge svg {
    width: clamp(72px, 15svh, 140px);
    height: auto;
  }
  .scene-meet .bubbles {
    gap: 8px;
  }
  .scene-meet .bubble {
    font-size: 16px;
    line-height: 1.4;
    padding: 11px 15px;
    border-radius: 20px 20px 20px 6px;
  }
  .scene-meet .progress-dots {
    display: none;
  }
}
@media (max-width: 820px) and (max-height: 700px) {
  .scene-meet .bubble {
    font-size: 15px;
    padding: 9px 13px;
  }
  .scene-meet .bubbles {
    gap: 6px;
  }
}

/* záře v úvodu se nemá uříznout rovnou čarou: dolů smí přesahovat a plynule doznít */
.hero {
  overflow: visible;
  overflow-x: clip;
}

/* ───────── cena ───────── */
.pricing {
  position: relative;
  padding: 110px clamp(20px, 5vw, 60px) 90px;
  width: min(1120px, 100%);
  margin: 0 auto;
}
.pricing-head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 44px;
}
.pricing-head .eyebrow {
  margin: 0;
}
.pricing-head .muted {
  max-width: 46ch;
}
.plans {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 22px;
  align-items: start;
}
.plan {
  position: relative;
  display: grid;
  gap: 12px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan h3 {
  font-size: 26px;
}
.plan-pro {
  background: linear-gradient(160deg, rgb(52 36 110 / 0.95), rgb(26 19 52 / 0.95));
  box-shadow: inset 0 0 0 2px var(--lime), 0 40px 100px -40px rgb(196 247 90 / 0.35);
}
.plan-badge {
  justify-self: start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 800;
  font-size: 14px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.price b {
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(44px, 6vw, 60px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.price span {
  color: var(--ink-2);
  font-weight: 700;
}
.plan-sub {
  color: var(--ink-2);
  font-size: 15px;
}
.plan-sub b {
  color: var(--ink);
}
.plan-plus {
  font-weight: 800;
  color: var(--lime);
  margin-top: 6px;
}
.plan-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 10px;
  display: grid;
  gap: 11px;
}
.plan-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
}
.plan-list .tick {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--lime);
  font-weight: 900;
  font-size: 13px;
}
.plan-pro .tick {
  background: var(--lime);
  color: var(--lime-ink);
}
.plan-list b {
  color: var(--ink);
}
.pricing-note {
  margin: 28px auto 0;
  max-width: 60ch;
  text-align: center;
  color: var(--ink-2);
  font-size: 15px;
}
.pricing-note b {
  color: var(--ink);
}
@media (max-width: 820px) {
  .pricing {
    padding: 80px 16px 70px;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .plan-pro {
    order: -1;
  }
}
