/* ============================================================
   PAXEL — landing page
   Concept: „cusătura tradițională e primul pixel art românesc”
   Grilă de caiet de mate + colțuri pixelate + tricolor temperat.
   ============================================================ */

:root {
  --paper: #FBF7EF;
  --paper-2: #F3EDDF;
  --ink: #17181C;
  --ink-2: #1E2027;
  --ink-soft: #4E4F57;
  --line: rgba(23, 24, 28, 0.12);

  --red: #D9331F;
  --red-deep: #B3271A;
  --blue: #2B4BD7;
  --yellow: #FFC93C;
  --green: #2E9E5B;

  --cream: #E9DEC6;        /* fața stângă (umbră) */
  --cream-side: #F6EEDC;   /* fața dreaptă (lumină, cu chip) */
  --cream-top: #FDF9EE;    /* fața de sus */

  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-px: "Silkscreen", "Courier New", monospace;

  --ease: cubic-bezier(0.22, 0.72, 0.18, 1);
  --container: 1140px;

  /* colțuri pixelate */
  --px: 8px;
}

/* ---------- reset & bază ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }

/* colțuri pixelate în doi pași */
.clip-px, .btn-face, .btn::before, .hl-xp, .chip, .phone, .cta-box,
.mini-coin, .wl-row input, .quiz-opts button, .toast, .mini-banner, .mini-notif {
  clip-path: polygon(
    0 calc(var(--px) * 2), var(--px) calc(var(--px) * 2), var(--px) var(--px),
    calc(var(--px) * 2) var(--px), calc(var(--px) * 2) 0,
    calc(100% - var(--px) * 2) 0, calc(100% - var(--px) * 2) var(--px),
    calc(100% - var(--px)) var(--px), calc(100% - var(--px)) calc(var(--px) * 2),
    100% calc(var(--px) * 2),
    100% calc(100% - var(--px) * 2), calc(100% - var(--px)) calc(100% - var(--px) * 2),
    calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px) * 2) calc(100% - var(--px)),
    calc(100% - var(--px) * 2) 100%,
    calc(var(--px) * 2) 100%, calc(var(--px) * 2) calc(100% - var(--px)),
    var(--px) calc(100% - var(--px)), var(--px) calc(100% - var(--px) * 2),
    0 calc(100% - var(--px) * 2)
  );
}

/* ---------- tipografie ---------- */
.h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); }
.h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.08; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 700; }

.pixel-font { font-family: var(--font-px); }

.eyebrow {
  font-family: var(--font-px);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--ink-soft);
}
.px-dot { width: 9px; height: 9px; flex: none; }
.px-dot.red { background: var(--red); }
.px-dot.blue { background: var(--blue); }
.px-dot.yellow { background: var(--yellow); }
.px-dot.ink { background: var(--ink); }

.lead, .sec-lead {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- butoane pixel (față + umbră dură) ---------- */
.btn { position: relative; display: inline-block; flex: none; --px: 5px; }
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--yellow);
  transform: translate(5px, 5px);
}
.btn-face {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 1rem;
  padding: 16px 26px;
  transition: transform 0.14s var(--ease);
  white-space: nowrap;
}
.btn:hover .btn-face, .btn:focus-visible .btn-face { transform: translate(-2px, -2px); }
.btn:active .btn-face { transform: translate(4px, 4px); }
.btn-red::before { background: var(--ink); }
.btn-red .btn-face { background: var(--red); }
.btn-red:hover .btn-face { background: var(--red-deep); }
.btn-sm { --px: 4px; }
.btn-sm .btn-face { padding: 10px 18px; font-size: 0.92rem; }
.btn-sm::before { transform: translate(4px, 4px); }
.px-arrow { width: 13px; height: 13px; fill: currentColor; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s;
}
.nav.scrolled { border-bottom-color: var(--ink); }
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--yellow); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(150% 110% at 60% 10%, #000 35%, transparent 82%);
  mask-image: radial-gradient(150% 110% at 60% 10%, #000 35%, transparent 82%);
  pointer-events: none;
}
.hero-grid-bg .cell {
  position: absolute; width: 28px; height: 28px;
  animation: twinkle 5.5s ease-in-out infinite;
}
.cell.c1 { left: 6%;  top: 18%; background: var(--yellow); opacity: .5; animation-delay: 0s; }
.cell.c2 { left: 12%; top: 64%; background: var(--red);    opacity: .3; animation-delay: 1.2s; }
.cell.c3 { left: 38%; top: 10%; background: var(--blue);   opacity: .25; animation-delay: 2.1s; }
.cell.c4 { left: 55%; top: 78%; background: var(--yellow); opacity: .4; animation-delay: 0.7s; }
.cell.c5 { left: 84%; top: 12%; background: var(--red);    opacity: .3; animation-delay: 1.8s; }
.cell.c6 { left: 93%; top: 48%; background: var(--blue);   opacity: .3; animation-delay: 3s; }
.cell.c7 { left: 72%; top: 6%;  background: var(--yellow); opacity: .35; animation-delay: 2.6s; }
.cell.c8 { left: 26%; top: 86%; background: var(--red);    opacity: .22; animation-delay: 3.6s; }
@keyframes twinkle { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.55; } }

.hero-inner {
  position: relative;
  max-width: var(--container); margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) 24px clamp(56px, 9vh, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.hero-copy .h1 { margin-bottom: 22px; }
.hero-copy .lead { margin-bottom: 34px; }

.hl-xp {
  display: inline-block;
  background: var(--yellow);
  padding: 0 0.16em;
  --px: 5px;
}

/* formular waitlist */
.wl-form { max-width: 520px; }
.wl-row { display: flex; gap: 14px; align-items: stretch; }
.wl-row input {
  flex: 1; min-width: 0;
  border: 2px solid var(--ink);
  background: #fff;
  padding: 15px 18px;
  font: inherit;
  --px: 6px;
}
.wl-row input::placeholder { color: #9b9ca3; }
.wl-row input:focus { outline: 3px solid var(--yellow); outline-offset: 0; }
.wl-row input.err { border-color: var(--red); animation: shake 0.35s; }
.hp { display: none !important; }
.wl-note { font-size: 0.86rem; color: var(--ink-soft); margin-top: 12px; }

.wl-success {
  display: flex; align-items: center; gap: 16px;
  background: #fff;
  border: 2px solid var(--ink);
  padding: 18px 20px;
  margin-top: 4px;
}
.wl-success[hidden] { display: none; }
.wl-success strong { display: block; font-size: 1.02rem; }
.wl-success span { font-size: 0.88rem; color: var(--ink-soft); }
.xp-tag { background: var(--yellow); padding: 1px 6px; font-size: 0.68rem; margin-left: 4px; }
.px-check { width: 30px; height: 30px; fill: var(--green); flex: none; }
.px-check.sm { width: 15px; height: 15px; }
.copy-link {
  margin-left: auto; flex: none;
  font-size: 0.82rem; font-weight: 600;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}
.copy-link:hover { border-color: var(--ink); }

.hero-badges {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 30px;
  font-size: 0.88rem; font-weight: 500; color: var(--ink-soft);
}
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges .px-dot { width: 7px; height: 7px; }

/* ---------- scena mascotei ---------- */
.hero-stage { position: relative; display: grid; place-items: center; min-height: 420px; }
.paxel-float { width: min(340px, 78%); animation: bob 3.6s ease-in-out infinite; }
.paxel { width: 100%; height: auto; overflow: visible; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.paxel-shadow { animation: shadowPulse 3.6s ease-in-out infinite; transform-origin: 150px 306px; }
@keyframes shadowPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.9); } }

.eye { transform-box: fill-box; transform-origin: center; animation: blink 4.8s infinite; }
@keyframes blink {
  0%, 91%, 100% { transform: translate(var(--ex, 0px), var(--ey, 0px)) scaleY(1); }
  94%, 96% { transform: translate(var(--ex, 0px), var(--ey, 0px)) scaleY(0.08); }
}
.mouth { transform-box: fill-box; transform-origin: center; }

.arm-wave { transform-box: fill-box; transform-origin: 20% 20%; animation: wave 6.5s ease-in-out infinite; }
@keyframes wave {
  0%, 74%, 100% { transform: rotate(0deg); }
  78% { transform: rotate(-22deg); }
  84% { transform: rotate(6deg); }
  90% { transform: rotate(-18deg); }
}
.beacon-glow { animation: beacon 2.4s ease-in-out infinite; }
.beacon { animation: beacon 2.4s ease-in-out infinite; }
@keyframes beacon { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.stage-ground {
  position: absolute; bottom: 8%; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  pointer-events: none;
}
.stage-ground span { width: 14px; height: 14px; }
.stage-ground span:nth-child(1) { background: var(--blue); opacity: .25; }
.stage-ground span:nth-child(2) { background: var(--yellow); opacity: .5; transform: translateY(10px); }
.stage-ground span:nth-child(3) { background: var(--red); opacity: .3; }
.stage-ground span:nth-child(4) { background: var(--yellow); opacity: .3; transform: translateY(-8px); }
.stage-ground span:nth-child(5) { background: var(--blue); opacity: .2; transform: translateY(6px); }

/* jetoane plutitoare */
.chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 2px solid var(--ink);
  padding: 9px 14px;
  font-size: 0.82rem; font-weight: 600;
  --px: 5px;
  animation: chipFloat 5s ease-in-out infinite;
}
.chip-xp { top: 9%; right: 6%; background: var(--yellow); font-size: 0.78rem; animation-delay: 0.6s; }
.chip-quest { bottom: 20%; left: -2%; animation-delay: 1.6s; }
.chip-coin { top: 24%; left: 2%; animation-delay: 2.8s; font-size: 0.78rem; }
.chip-check { width: 15px; height: 15px; fill: var(--green); }
.coin-p {
  width: 20px; height: 20px; background: var(--yellow);
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-size: 0.6rem;
}
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- ticker ---------- */
.ticker {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
  padding: 13px 0;
}
.ticker-track { display: flex; width: max-content; animation: tick 30s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; flex: none; }
.ticker-group span {
  font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.09em;
  white-space: nowrap;
  padding: 0 28px;
}
.tick-star {
  width: 10px; height: 10px; flex: none;
  background: var(--yellow);
  clip-path: polygon(33% 0, 66% 0, 66% 33%, 100% 33%, 100% 66%, 66% 66%, 66% 100%, 33% 100%, 33% 66%, 0 66%, 0 33%, 33% 33%);
}
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- secțiuni ---------- */
.section { padding: clamp(72px, 10vh, 120px) 0; }
.section.alt { background: var(--paper-2); }
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 6vh, 64px); }
.sec-head .h2 { margin-bottom: 18px; }

/* ---------- secțiunea dark: demo ---------- */
.dark {
  background: var(--ink);
  color: var(--paper);
  --line: rgba(244, 241, 232, 0.1);
}
.dark .eyebrow { color: rgba(244, 241, 232, 0.65); }
.dark .sec-lead { color: rgba(244, 241, 232, 0.72); }

.demo {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.demo-steps { list-style: none; display: grid; gap: 6px; }
.demo-steps li {
  display: flex; gap: 18px;
  padding: 18px 20px;
  border-left: 3px solid rgba(244, 241, 232, 0.14);
  opacity: 0.45;
  transition: opacity 0.4s, border-color 0.4s, background 0.4s;
}
.demo-steps li.active {
  opacity: 1;
  border-left-color: var(--yellow);
  background: rgba(244, 241, 232, 0.05);
}
.step-num { font-size: 0.72rem; color: var(--yellow); padding-top: 5px; }
.demo-steps strong { font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; display: block; margin-bottom: 3px; }
.demo-steps p { font-size: 0.9rem; color: rgba(244, 241, 232, 0.66); }

.demo-live {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.66rem; letter-spacing: 0.14em;
  color: rgba(244, 241, 232, 0.6);
  margin-bottom: 22px;
}
.live-dot { width: 8px; height: 8px; background: var(--green); animation: beacon 1.6s infinite; }

.phones {
  position: relative;
  display: flex; gap: clamp(20px, 3vw, 44px);
  justify-content: center; align-items: flex-start;
}
.phone {
  width: min(258px, 46%);
  background: var(--ink-2);
  border: 2px solid rgba(244, 241, 232, 0.3);
  padding: 10px;
  --px: 10px;
}
.phone-parent { transform: rotate(-1.6deg); }
.phone-child { transform: rotate(1.8deg) translateY(22px); }
.phone-screen {
  background: var(--paper);
  color: var(--ink);
  min-height: 372px;
  padding: 14px 12px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
}
.phone-screen.child { background: #FDF4DC; }
.phone-tag {
  font-size: 0.6rem; letter-spacing: 0.12em;
  text-align: center; padding-top: 10px;
  color: rgba(244, 241, 232, 0.55);
}

/* mini UI */
.mini-head { display: flex; align-items: center; gap: 9px; }
.mini-head strong { font-size: 0.82rem; display: block; line-height: 1.2; }
.mini-sub { font-style: normal; font-size: 0.66rem; color: var(--ink-soft); }
.mini-avatar {
  width: 30px; height: 30px; flex: none;
  background: var(--cream-side);
  border: 2px solid var(--ink);
  position: relative;
}
.mini-avatar::before, .mini-avatar::after {
  content: ""; position: absolute; top: 9px; width: 4px; height: 6px; background: var(--ink);
}
.mini-avatar::before { left: 6px; }
.mini-avatar::after { right: 6px; }
.mini-avatar.kid { background: var(--yellow); }
.mini-coin {
  margin-left: auto;
  display: flex; align-items: center; gap: 5px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 3px 8px;
  font-size: 0.62rem;
  --px: 3px;
}
.mini-coin i {
  font-style: normal;
  width: 12px; height: 12px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  font-size: 0.45rem;
}
.mini-label {
  font-family: var(--font-px);
  font-size: 0.56rem; letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.mini-tasks { list-style: none; display: grid; gap: 7px; }
.mini-tasks li {
  display: flex; align-items: center; gap: 9px;
  background: #fff;
  border: 1.5px solid var(--line);
  padding: 8px 10px;
  font-size: 0.74rem; font-weight: 500;
}
.mini-tasks li div { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.mini-tasks em { font-style: normal; font-size: 0.62rem; color: var(--ink-soft); flex: none; }
.mini-tasks li.done { opacity: 0.55; }
.mini-tasks li.done div { text-decoration: line-through; }
.mini-check {
  width: 15px; height: 15px; flex: none;
  border: 2px solid var(--ink);
  background: #fff;
  display: grid; place-items: center;
  font-size: 9px; font-weight: 700; color: #fff;
  transition: background 0.25s;
}
.mini-check.on { background: var(--green); border-color: var(--green); }
.mini-check.on::before { content: "✓"; }
.task-new { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.task-new.show { opacity: 1; transform: none; }
.mini-add {
  border: 2px dashed var(--ink-soft);
  color: var(--ink-soft);
  font-size: 0.7rem; font-weight: 600;
  padding: 8px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.mini-add.pulse { animation: addPulse 0.9s var(--ease); }
@keyframes addPulse { 0%, 100% { transform: scale(1); } 40% { transform: scale(0.94); background: rgba(23,24,28,0.06); } }

.mini-banner {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  background: var(--ink); color: var(--paper);
  padding: 10px 12px;
  font-size: 0.7rem;
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  --px: 5px;
}
.mini-banner.show { opacity: 1; transform: none; }
.mini-banner p { flex: 1; line-height: 1.35; }
.mini-approve {
  flex: none; position: relative;
  background: var(--green); color: #fff;
  font-weight: 700; font-size: 0.64rem;
  padding: 6px 10px;
  transition: transform 0.15s;
}
.mini-approve i { font-style: normal; }
.approve-done { display: none; }
.mini-banner.approved .mini-approve { transform: scale(0.96); }
.mini-banner.approved .approve-label { display: none; }
.mini-banner.approved .approve-done { display: inline; }

.mini-notif {
  background: var(--blue); color: #fff;
  font-size: 0.68rem; font-weight: 600;
  padding: 7px 10px;
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  --px: 4px;
}
.mini-notif.show { opacity: 1; transform: none; }

.quest-card {
  background: #fff;
  border: 2px solid var(--ink);
  padding: 12px;
  display: grid; gap: 8px;
  opacity: 0.5;
  transition: opacity 0.4s;
}
.quest-card.live { opacity: 1; }
.quest-name { font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; }
.quest-bar { height: 10px; background: var(--paper-2); border: 1.5px solid var(--ink); }
.quest-bar i { display: block; height: 100%; width: 0%; background: var(--yellow); transition: width 1.6s var(--ease); }
.quest-bar.slim { height: 7px; }
.quest-bar.slim i { background: var(--green); transition: width 0.9s var(--ease); }
.quest-state { font-size: 0.68rem; font-weight: 600; color: var(--ink-soft); min-height: 1.2em; position: relative; }
.quest-state span { position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s; }
.quest-state .q-done b { color: var(--ink); background: var(--yellow); padding: 0 4px; font-size: 0.6rem; }
.quest-card:not(.playing):not(.finished) .q-wait { opacity: 1; }
.quest-card.playing .q-play { opacity: 1; }
.quest-card.finished .q-done { opacity: 1; }

.shop-teaser { margin-top: auto; display: grid; gap: 7px; }
.shop-item {
  display: flex; align-items: center; gap: 9px;
  background: #fff;
  border: 1.5px solid var(--line);
  padding: 9px 10px;
  font-size: 0.74rem;
}
.shop-item > div { flex: 1; display: grid; gap: 5px; }
.shop-item strong { font-size: 0.74rem; }
.shop-item em { font-style: normal; font-size: 0.56rem; color: var(--ink-soft); }

.shop-pix { width: 26px; height: 26px; flex: none; background: var(--red); position: relative; }
.shop-pix::before {
  content: ""; position: absolute; top: -5px; left: 4px;
  width: 6px; height: 5px; background: var(--red);
  box-shadow: 12px 0 0 var(--red);
}

/* pachetul care zboară între telefoane */
.packet {
  position: absolute; z-index: 5;
  top: 42%; left: 26%;
  width: 13px; height: 13px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  opacity: 0;
  offset-path: path("M 0 0 Q 120 -110 235 -18");
  offset-rotate: 0deg;
}
.packet.go { animation: packetGo 1.15s steps(14) forwards; }
@keyframes packetGo {
  0% { opacity: 1; offset-distance: 0%; }
  88% { opacity: 1; }
  100% { opacity: 0; offset-distance: 100%; }
}

/* ---------- carduri (pentru copil) ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 26px;
}
.card {
  background: #fff;
  border: 2px solid var(--ink);
  padding: 30px 26px;
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--yellow); }
.card-icon { width: 46px; height: 46px; margin-bottom: 20px; image-rendering: pixelated; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; margin-bottom: 10px; }
.card p { font-size: 0.94rem; color: var(--ink-soft); }

/* mini-quiz */
.quiz {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(28px, 4vw, 48px);
  border: 2px solid var(--ink);
}
.quiz .eyebrow { color: rgba(244, 241, 232, 0.6); margin-bottom: 12px; }
.quiz-q { font-size: clamp(2rem, 4vw, 3rem); font-family: var(--font-display); font-weight: 800; }
.quiz-hint { font-size: 0.82rem; color: rgba(244, 241, 232, 0.55); margin-top: 8px; }
.quiz-opts { display: flex; gap: 12px; flex-wrap: wrap; }
.quiz-opts button {
  font-family: var(--font-px);
  font-size: 1.05rem;
  background: var(--paper); color: var(--ink);
  padding: 14px 26px;
  --px: 6px;
  transition: transform 0.12s var(--ease), background 0.15s;
}
.quiz-opts button:hover { transform: translate(-2px, -2px); background: var(--yellow); }
.quiz-opts button.nope { animation: shake 0.4s; background: var(--red); color: #fff; }
.quiz-opts button.yep { background: var(--green); color: #fff; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); }
}
.quiz-msg { font-size: 0.9rem; min-height: 1.5em; margin-top: 14px; color: rgba(244, 241, 232, 0.85); }
.quiz-score { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.quiz-score .mini-coin { margin-left: 0; }
.quiz-score-label { font-size: 0.78rem; color: rgba(244, 241, 232, 0.55); }

/* ---------- pentru părinți ---------- */
.parent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 34px;
}
.panel {
  background: #fff;
  border: 2px solid var(--ink);
  padding: clamp(26px, 3vw, 38px);
}
.panel-tag {
  display: inline-block;
  font-size: 0.62rem; letter-spacing: 0.13em;
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  padding: 5px 10px;
  margin-bottom: 18px;
}
.panel h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 22px; line-height: 1.2; }

.todo-list, .shop-list { list-style: none; display: grid; gap: 10px; }
.todo-list li, .shop-list li {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  padding: 12px 14px;
  font-size: 0.92rem; font-weight: 500;
}
.todo-list li div, .shop-list li > div { flex: 1; }
.todo-list small { color: var(--ink-soft); font-weight: 400; }
.pts {
  font-style: normal; font-size: 0.66rem; flex: none;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  padding: 3px 8px;
}
.todo-list li.is-done { opacity: 0.55; }
.todo-list li.is-done div { text-decoration: line-through; }
.todo-ghost { border-style: dashed !important; color: var(--ink-soft); background: transparent !important; font-size: 0.84rem !important; }
.todo-ghost .plus {
  width: 16px; height: 16px; flex: none;
  display: grid; place-items: center;
  border: 2px dashed var(--ink-soft);
  font-weight: 700; font-size: 0.8rem;
}

.shop-list .shop-sub { display: block; font-size: 0.74rem; color: var(--ink-soft); font-weight: 400; }
.shop-list .quest-bar { margin-top: 6px; max-width: 190px; }
.quest-bar.light { background: #fff; }
.shop-pix.lego { background: var(--red); }
.shop-pix.film { background: var(--blue); }
.shop-pix.film::before { top: 4px; left: -5px; width: 5px; height: 6px; background: var(--blue); box-shadow: 0 12px 0 var(--blue); }
.shop-pix.game { background: var(--green); }
.shop-pix.game::before {
  top: 8px; left: 8px; width: 10px; height: 10px;
  background: transparent;
  box-shadow: none;
  border: 2.5px solid #fff;
}
.shop-pix.heart {
  background: var(--red);
  clip-path: polygon(50% 100%, 15% 65%, 0 40%, 0 15%, 15% 0, 35% 0, 50% 18%, 65% 0, 85% 0, 100% 15%, 100% 40%, 85% 65%);
}
.shop-pix.heart::before { display: none; }
.shop-free { background: #FFF6DC !important; border-color: var(--yellow) !important; }

.parent-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 28px;
  font-size: 0.92rem; font-weight: 500;
}
.parent-bullets li { display: flex; align-items: center; gap: 10px; }

/* ---------- atunci vs acum ---------- */
.then-now { border: 2px solid var(--ink); background: #fff; }
.tn-head, .tn-row {
  display: grid;
  grid-template-columns: 1fr 68px 1fr;
  align-items: center;
  padding: 18px 26px;
}
.tn-head {
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
  font-size: 0.72rem; letter-spacing: 0.14em;
}
.tn-head span:last-child { text-align: right; }
.tn-row { border-bottom: 1.5px solid var(--line); font-size: 0.98rem; }
.tn-row:last-child { border-bottom: 0; }
.tn-row span:first-child { color: var(--ink-soft); }
.tn-row span:last-child { text-align: right; font-weight: 600; }
.tn-arrow {
  justify-self: center;
  width: 26px; height: 14px;
  background: var(--ink);
  clip-path: polygon(0 36%, 55% 36%, 55% 0, 100% 50%, 55% 100%, 55% 64%, 0 64%);
  opacity: 0.85;
}
.tn-joke mark { background: var(--yellow); padding: 2px 7px; }
.tn-footnote { font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- faq ---------- */
.faq details { border-bottom: 2px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  padding: 24px 4px;
  cursor: pointer;
  transition: color 0.15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red); }
.faq-px { position: relative; width: 16px; height: 16px; flex: none; }
.faq-px::before, .faq-px::after {
  content: ""; position: absolute; background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.faq-px::before { left: 0; top: 6px; width: 16px; height: 4px; }
.faq-px::after { left: 6px; top: 0; width: 4px; height: 16px; }
.faq details[open] .faq-px::after { transform: scaleY(0); }
.faq details p {
  padding: 0 4px 26px;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- CTA final ---------- */
.cta-final { padding-top: clamp(40px, 6vh, 72px); }
.cta-box {
  background: var(--yellow);
  --px: 16px;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
.cta-box .eyebrow { justify-content: center; color: var(--ink); }
.cta-box .h2 { margin-bottom: 16px; }
.cta-box .sec-lead { margin: 0 auto 34px; color: rgba(23, 24, 28, 0.75); }
.cta-box .wl-form { margin: 0 auto; }
.cta-box .btn::before { background: var(--paper); }
.cta-box .wl-note { color: rgba(23, 24, 28, 0.65); }
.cta-box .wl-row input { outline-color: var(--ink); }
.cta-box .wl-row input:focus { outline: 3px solid var(--ink); }

/* ---------- footer ---------- */
.footer {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.stitch-band {
  height: 14px;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cg fill='%23D9331F'%3E%3Crect x='2' y='2' width='3' height='3'/%3E%3Crect x='5' y='5' width='3' height='3'/%3E%3Crect x='8' y='8' width='3' height='3'/%3E%3Crect x='8' y='2' width='3' height='3'/%3E%3Crect x='2' y='8' width='3' height='3'/%3E%3C/g%3E%3Crect x='17' y='4' width='5' height='5' fill='%232B4BD7'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px;
  padding-top: 64px; padding-bottom: 40px;
  position: relative; z-index: 1;
}
.footer .brand-name { color: var(--paper); }
.footer-brand p { margin-top: 16px; font-size: 0.92rem; color: rgba(244, 241, 232, 0.6); }
.tricolor { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: baseline; }
.tricolor i { width: 8px; height: 8px; display: inline-block; }
.tricolor i:nth-child(1) { background: var(--blue); }
.tricolor i:nth-child(2) { background: var(--yellow); }
.tricolor i:nth-child(3) { background: var(--red); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; max-width: 420px; }
.footer-links a {
  text-decoration: none; font-size: 0.92rem;
  color: rgba(244, 241, 232, 0.75);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.footer-links a:hover { color: var(--paper); border-bottom-color: var(--yellow); }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-top: 24px; padding-bottom: 36px;
  border-top: 1.5px solid rgba(244, 241, 232, 0.14);
  font-size: 0.8rem; color: rgba(244, 241, 232, 0.45);
  position: relative; z-index: 1;
}
.konami-hint { font-size: 0.6rem; letter-spacing: 0.1em; }
.footer-watermark {
  position: absolute; bottom: -0.28em; left: 50%;
  transform: translateX(-50%);
  font-size: clamp(90px, 19vw, 250px);
  line-height: 1;
  color: rgba(244, 241, 232, 0.05);
  pointer-events: none; user-select: none;
  white-space: nowrap;
}

/* ---------- toast & confetti ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300;
  transform: translateX(-50%);
  background: var(--ink); color: var(--yellow);
  border: 2px solid var(--yellow);
  padding: 14px 22px;
  font-size: 0.72rem; letter-spacing: 0.1em;
  animation: toastIn 0.3s var(--ease);
}
@keyframes toastIn { from { transform: translate(-50%, 16px); opacity: 0; } }
.pxc {
  position: fixed; z-index: 400;
  width: 9px; height: 9px;
  pointer-events: none;
}

/* ---------- reveal on scroll ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease) var(--d, 0s), transform 0.7s var(--ease) var(--d, 0s);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-stage { min-height: 340px; order: 2; }
  .paxel-float { width: min(280px, 64%); }
  .demo { grid-template-columns: 1fr; }
  .demo-steps { order: 2; }
  .parent-grid { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .card:last-child { grid-column: span 2; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .cell.c3, .cell.c6, .cell.c8 { display: none; }
  .cards-3 { grid-template-columns: 1fr; }
  .card:last-child { grid-column: auto; }
  .quiz { grid-template-columns: 1fr; gap: 20px; }
  .wl-row { flex-direction: column; }
  .wl-row .btn { align-self: stretch; }
  .wl-row .btn-face { width: 100%; justify-content: center; }
  .phones { flex-direction: column; align-items: center; gap: 26px; }
  .phone { width: min(280px, 100%); }
  .phone-child { transform: rotate(0deg); }
  .phone-parent { transform: rotate(0deg); }
  .packet { display: none; }
  .tn-head, .tn-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; }
  .tn-arrow { display: none; }
  .tn-head span:last-child, .tn-row span:last-child { text-align: left; }
  .tn-head span:last-child { display: none; }
  .footer-inner { flex-direction: column; }
  .wl-success { flex-wrap: wrap; }
  .copy-link { margin-left: 46px; }
  .chip { font-size: 0.72rem; padding: 7px 11px; }
  .chip-xp { top: 0; right: 0; }
  .chip-quest { bottom: 0; left: 0; }
  .chip-coin { top: 10%; left: 0; }
  .hero-stage { min-height: 400px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .paxel-float, .paxel-shadow, .arm-wave, .beacon, .beacon-glow,
  .chip, .cell, .live-dot, .eye { animation: none !important; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker-group:last-child { display: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .packet { display: none; }
  .card:hover { transform: none; }
}
