/* Misja na Piątkę landing: night sky, soft rounded cards, warm planet-5 accents. */
:root {
  --bg: #0b1030;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --ink: #f4f2ff;
  --ink-2: #b9bde6;
  --amber: #ffc857;
  --coral: #ff8a7a;
  --teal: #5fe0cf;
  --violet: #9d8cff;
  --radius: 28px;
  --display: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}
h1, h2, h3, .brand, .hero__title, .strip b, summary { font-family: var(--display); }
h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3, summary, .hero__title { text-wrap: balance; }
p, li { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 1; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 10; background: var(--amber); color: #2a1d00; padding: 8px 12px; border-radius: 8px; }

/* twinkling star field behind everything */
.sky {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.7;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 72% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 66%, #fff, transparent), radial-gradient(1px 1px at 86% 54%, #fff, transparent),
    radial-gradient(1px 1px at 25% 88%, #fff, transparent), radial-gradient(1.5px 1.5px at 60% 34%, #fff, transparent),
    radial-gradient(1px 1px at 92% 86%, #fff, transparent), radial-gradient(1px 1px at 6% 50%, #fff, transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: 0.35; } }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.top__links { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.top__links a { color: var(--ink-2); text-decoration: none; }
.top__links a:hover { color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 30px 0 70px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(157, 140, 255, 0.16); border: 1px solid rgba(157, 140, 255, 0.4); color: #d9d2ff;
  font-weight: 600; font-size: 14px; animation: breathe 3.2s ease-in-out infinite;
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
@keyframes breathe { 50% { box-shadow: 0 0 0 8px rgba(157, 140, 255, 0.08); } }
.hero__brand { font-size: 18px; font-weight: 800; color: var(--amber); letter-spacing: 1px; text-transform: uppercase; margin: 18px 0 6px; }
.hero__title { font-size: clamp(38px, 6vw, 62px); line-height: 1.05; font-weight: 900; margin-bottom: 16px; }
.hero__title em {
  font-style: normal; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg, var(--amber), var(--coral));
}
.hero__lead { color: var(--ink-2); font-size: 19px; max-width: 560px; }

/* store buttons stay greyed out until the app is published */
.cta { margin: 26px 0 20px; }
.cta__soon { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.cta__badges { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; flex-direction: column; padding: 10px 22px; border-radius: 999px;
  font-family: var(--display); font-weight: 800; font-size: 16px; line-height: 1.2;
}
.store-badge small { font: 500 12px "Inter", sans-serif; }
.store-badge--soon {
  background: rgba(255, 255, 255, 0.08); color: #8d92b8; border: 1px dashed rgba(255, 255, 255, 0.22);
  cursor: not-allowed; filter: grayscale(1);
}
.pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.pills li::before { content: "✓ "; color: var(--teal); font-weight: 700; }

/* hero stage: cockpit with the planet, robot and rocket around it */
.stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; margin: 0 auto; }
.stage__glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(157, 140, 255, 0.45), transparent 65%); filter: blur(10px); }
.stage__cockpit { position: absolute; inset: 10%; border-radius: 40px; overflow: hidden; border: 2px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.stage__cockpit img { width: 100%; height: 100%; object-fit: cover; }
.world {
  position: absolute; top: 12%; right: -12%; width: 34%;
  transform: translate(-50%, -50%) scale(1);
  animation: voyage 7s ease-in-out infinite;
}
@keyframes voyage {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -58%) scale(1.06); }
}
.stage__robot { position: absolute; bottom: 2%; left: -3%; width: 22%; animation: float 6s ease-in-out -2s infinite; }
.rocket { position: absolute; top: 4%; left: 4%; width: 13%; transform: rotate(20deg); }
.rocket img { animation: float 6s ease-in-out -4s infinite; }
@keyframes float { 50% { translate: 0 -14px; } }
.bubble {
  position: absolute; bottom: 12%; right: -2%; max-width: 200px; padding: 10px 14px;
  background: #fff; color: #1b1f45; border-radius: 20px 20px 4px 20px; font: 700 14px/1.35 var(--display);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); animation: pop 0.6s 0.8s both;
}
@keyframes pop { from { opacity: 0; transform: scale(0.6); } }

/* shared section parts */
.section { padding: 70px 0 0; }
.kicker { text-align: center; color: var(--amber); font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }
.section h2, .final h2 { text-align: center; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; font-weight: 900; margin: 10px auto 14px; max-width: 900px; }
.sub { text-align: center; color: var(--ink-2); max-width: 760px; margin: 0 auto 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--ink-2); }

.strip { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.strip li { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; text-align: center; color: var(--ink-2); font-size: 14px; }
.strip b { display: block; font-size: 30px; font-weight: 900; color: var(--amber); }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; overflow: hidden; }
.step__img { width: calc(100% + 56px); max-width: none; margin: -28px -28px 18px; aspect-ratio: 16 / 10; object-fit: cover; }
.step__num { position: absolute; top: 16px; left: 16px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; margin-bottom: 16px; color: #1b1f45; font: 900 22px var(--display); }
.step:nth-child(1) .step__num { background: var(--teal); }
.step:nth-child(2) .step__num { background: var(--amber); }
.step:nth-child(3) .step__num { background: var(--coral); }

.subjects { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.subject { text-align: center; padding: 24px 18px; }
.subject h3 { margin: 10px 0 2px; }
.subject__img { width: 120px; margin: 4px auto 0; filter: drop-shadow(0 0 18px rgba(157, 140, 255, 0.55)); }
.safe__img { width: 96px; margin-bottom: 10px; }
.subject__tag { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(95, 224, 207, 0.18); color: var(--teal); }
.subject--soon { filter: grayscale(0.85); opacity: 0.55; border-style: dashed; }
.subject--soon .subject__tag { background: rgba(255, 255, 255, 0.1); color: var(--ink-2); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two .card { padding: 34px; }
.two h3 { font-size: 25px; margin-bottom: 16px; }
.two__parents { background: linear-gradient(160deg, rgba(95, 224, 207, 0.14), rgba(255, 255, 255, 0.04)); }
.two__kids { background: linear-gradient(160deg, rgba(255, 200, 87, 0.16), rgba(255, 255, 255, 0.04)); }
.ticks { list-style: none; padding: 0; display: grid; gap: 12px; color: var(--ink-2); }
.ticks li { display: flex; gap: 12px; }
.ticks li::before { content: "✦"; color: var(--amber); flex: none; }
.two__parents .ticks li::before { color: var(--teal); }

.safe { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.safe .card { padding: 22px; }
.safe h3 { font-size: 18px; }
.safe p { font-size: 15px; }
.nope { margin-top: 20px; }
.nope ul { color: var(--ink-2); display: grid; gap: 8px; padding-left: 20px; }

.price { max-width: 640px; margin: 0 auto; text-align: center; padding: 40px; background: linear-gradient(160deg, rgba(157, 140, 255, 0.22), rgba(255, 255, 255, 0.04)); }
.price h2 { font-size: 48px; margin: 6px auto; }
.price h2 small { font-size: 20px; color: var(--ink-2); }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; }
summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 800; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--amber); font-size: 24px; line-height: 1; transition: transform 0.25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); margin-top: 10px; }

.soon { margin-top: 70px; padding: 40px 28px; text-align: center; }
.soon__badge { display: inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(255, 200, 87, 0.18); color: var(--amber); font-weight: 700; }
.soon .sub { margin-bottom: 24px; }
.crew { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; color: var(--ink-2); font-size: 14px; }
.crew li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.crew img { height: 120px; width: auto; animation: float 6s ease-in-out infinite; }
.crew li:nth-child(2) img { animation-delay: -2s; }
.crew li:nth-child(3) img { animation-delay: -4s; }
.crew b { color: var(--ink); font: 800 18px var(--display); }
.crew__more span { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; border: 2px dashed var(--line); font: 900 30px var(--display); color: var(--amber); }

.joy { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.joy .card, .joy li { padding: 24px; }
.joy__img { width: 100%; max-width: 220px; margin: -6px auto 8px; }
.joy--soon { filter: grayscale(0.85); opacity: 0.55; border-style: dashed; }
.joy--soon h3 { margin-top: 10px; }

.story__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story__card { margin: 0; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.story__card > img { border-radius: 20px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.story__robot { height: 180px; width: auto !important; margin: 0 auto; animation: float 6s ease-in-out infinite; }

.final {
  margin-top: 70px; padding: 60px 24px; border-radius: 40px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(11, 16, 48, 0.35), rgba(11, 16, 48, 0.85)), url("/img/sky.webp") center / cover;
}
.final__planet { width: 170px; margin: 0 auto 10px; animation: spin 40s linear infinite; }
.final .sub { margin-bottom: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.footer { margin-top: 60px; padding-top: 28px; padding-bottom: 60px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; display: grid; gap: 12px; }
.footer__brand { font: 900 18px var(--display); color: var(--ink); }
.footer__author { display: flex; align-items: center; gap: 14px; }
.footer__psds { width: 110px; }
.footer__nav { display: flex; gap: 18px; }
.footer a { color: var(--ink-2); }

/* sections slide in once when they scroll into view (script.js adds .in) */
/* Only hidden when script.js runs and adds .js, so the page stays readable without JavaScript. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .top__links { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 10px; }
  .hero__lead { margin: 0 auto; }
  .cta__badges, .pills { justify-content: center; }
  .strip, .safe, .subjects, .crew, .joy { grid-template-columns: 1fr 1fr; }
  .story__grid { grid-template-columns: 1fr; }
  .steps, .two { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .safe, .joy { grid-template-columns: 1fr; }
  .bubble { max-width: 160px; font-size: 13px; }
}

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