/* Sucharek — style strony głównej */

/* dekoracje: latające sucharki i okruszki */
.deco-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.deco { position: absolute; pointer-events: none; z-index: 0; }
.mini-cookie { width: 46px; height: 40px; background: var(--cookie-light); border: 3px solid var(--ink);
  border-radius: 46% 46% 22% 22% / 52% 52% 16% 16%; position: relative; animation: floaty 5s ease-in-out infinite;
  box-shadow: inset 0 0 0 5px var(--cookie); }
.mini-cookie::before, .mini-cookie::after { content: ''; position: absolute; background: var(--pore); border-radius: 40% 60% 55% 45%; }
.mini-cookie::before { width: 7px; height: 6px; top: 30%; left: 26%; transform: rotate(20deg); }
.mini-cookie::after  { width: 5px; height: 5px; top: 58%; left: 58%; transform: rotate(-15deg); }
@keyframes floaty { 0%,100% { transform: rotate(-10deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-12px); } }
.crumb { position: absolute; background: var(--cookie-dark); border-radius: 30% 70% 60% 40%; opacity: .55; pointer-events: none; }
.bg-deco { position: absolute; pointer-events: none; z-index: 0; opacity: .85; will-change: transform; }
.bg-deco .mini-cookie { animation-duration: 6s; }
.bg-deco.small .mini-cookie { width: 30px; height: 26px; border-width: 2.5px; box-shadow: inset 0 0 0 4px var(--cookie); }
.bg-deco.small .mini-cookie::before { width: 5px; height: 4px; }
.bg-deco.small .mini-cookie::after { width: 4px; height: 4px; }
.bg-deco.big .mini-cookie { width: 56px; height: 48px; }
.bg-deco .crumb { position: static; display: block; width: 9px; height: 8px; }
@media (prefers-reduced-motion: reduce) {
  .bg-deco, .mini-cookie, .mascot, .mascot .eye { animation: none !important; transform: none !important; }
}

/* HERO */
.hero { text-align: center; padding: 34px 0 30px; position: relative; }
.hero-deco1 { top: 30px; left: -30px; }
.hero-deco2 { top: 240px; right: -36px; animation-delay: 1.2s; }
.hero-deco2 .mini-cookie { width: 34px; height: 33px; }
.hero-crumb1 { width: 10px; height: 9px; top: 110px; left: 40px; }
.hero-crumb2 { width: 7px; height: 6px; top: 300px; right: 60px; }
.hero-crumb3 { width: 8px; height: 7px; top: 480px; left: 24px; }
.hero h1 { font-size: clamp(40px, 7.6vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -.01em; margin: 0 0 8px; position: relative; z-index: 1; }
.hero h1 .w1 { display: inline-block; transform: rotate(-1.5deg); }
.hero h1 .hl { position: relative; display: inline-block; transform: rotate(-2deg); color: var(--ink); }
.hero h1 .hl svg { position: absolute; left: -2%; bottom: -12px; width: 104%; height: 18px; }
.hero .sub { font-size: 22px; line-height: 1.5; color: var(--muted); max-width: 32em; margin: 16px auto 4px; position: relative; z-index: 1; }
.hero .sub b { color: var(--ink); }
.hero .sub .gr { color: var(--ink); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--lime-strong); text-decoration-thickness: 2.5px; text-underline-offset: 4px; }
.hero .sub a.gr:hover { text-decoration-thickness: 4px; }
.hero .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; position: relative; z-index: 1; }
.hero .cta-note { font-size: 13px; color: var(--muted); }

/* skan w hero */
.scan-title { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 20px; margin: 30px 0 12px; position: relative; z-index: 1; }
.scan-form { display: flex; align-items: center; gap: 8px; max-width: 540px; margin: 0 auto;
  background: var(--surface); border: 3px solid var(--ink); border-radius: 999px;
  padding: 6px 6px 6px 22px; box-shadow: 5px 6px 0 var(--lime); transform: rotate(-.7deg);
  position: relative; z-index: 1; transition: box-shadow .2s ease; }
.scan-form:focus-within { box-shadow: 7px 8px 0 var(--lime-strong); }
.scan-form input { flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-family: 'Open Sans', sans-serif; font-size: 15.5px; color: var(--ink); padding: 8px 0; }
.scan-form input::placeholder { color: var(--muted); }
.scan-form .btn { font-size: 15px; padding: 10px 24px; white-space: nowrap; flex: 0 0 auto; }
.scan-form.shake { animation: shake .4s ease; }
@keyframes shake { 0%,100% { transform: rotate(-.7deg) translateX(0); } 25% { transform: rotate(-.7deg) translateX(-7px); } 75% { transform: rotate(-.7deg) translateX(7px); } }
.scan-err { display: none; color: var(--danger); font-size: 13.5px; font-weight: 600; margin: 10px 0 0; position: relative; z-index: 1; }
.scan-err.show { display: block; }

/* sekcja: konto + demo */
.konto { text-align: center; position: relative; }
.konto .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 18px 0 6px; }
.mascot-zone { position: relative; width: 110px; margin: 0 auto 4px; z-index: 1; }
.mascot { width: 100px; height: 90px; margin: 0 auto; position: relative; cursor: pointer;
  background: var(--cookie-light); border: 3px solid var(--ink); border-radius: 46% 46% 22% 22% / 54% 54% 16% 16%;
  box-shadow: inset 0 0 0 8px var(--cookie), 5px 6px 0 var(--choc);
  animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-6px); } }
.mascot::before { content: ''; position: absolute; top: -14px; right: -9px; width: 40px; height: 40px;
  background: var(--surface); border-radius: 50%; border-bottom: 3px solid var(--ink); }
.mascot .chip { position: absolute; background: var(--pore); border-radius: 40% 60% 55% 45%; }
.mascot .chip:nth-child(1) { width: 9px; height: 8px; top: 22%; left: 20%; transform: rotate(20deg); }
.mascot .chip:nth-child(2) { width: 7px; height: 6px; top: 66%; left: 68%; transform: rotate(-15deg); }
.mascot .chip:nth-child(3) { width: 6px; height: 6px; top: 74%; left: 26%; }
.mascot .eye { position: absolute; width: 8px; height: 11px; background: var(--ink); border-radius: 50%; top: 39%; animation: blink 4.5s infinite; }
.mascot .eye.l { left: 35%; } .mascot .eye.r { left: 55%; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.mascot .smile { position: absolute; width: 22px; height: 11px; border: 3px solid var(--ink); border-top: 0;
  border-radius: 0 0 22px 22px; top: 52%; left: 50%; transform: translateX(-50%); }
.mascot.boing { animation: boing .5s ease; }
@keyframes boing {
  0% { transform: rotate(-5deg) scale(1); }
  30% { transform: rotate(9deg) scale(1.18); }
  60% { transform: rotate(-7deg) scale(.92); }
  100% { transform: rotate(-5deg) scale(1); }
}
.mascot-note { position: absolute; right: -125px; top: 12px; transform: rotate(6deg); white-space: nowrap; }
.mascot-note::before { content: '↙ '; }
.mascot-crumb1 { width: 9px; height: 8px; top: -8px; right: 28px; }
.mascot-crumb2 { width: 6px; height: 6px; top: 16px; right: 2px; }
.mascot-crumb3 { width: 7px; height: 6px; top: -18px; right: 52px; }

/* demo banera */
.demo-zone { position: relative; max-width: 660px; margin: 52px auto 0; z-index: 1; }
.demo-note { position: absolute; top: -32px; right: 6px; transform: rotate(-5deg); }
.demo-note::after { content: ' ↓'; }
.cookie-demo { background: var(--surface); border: 3px solid var(--ink); border-radius: 30px 22px 26px 24px;
  padding: 28px 28px 24px; text-align: left; transform: rotate(-.8deg);
  box-shadow: 8px 10px 0 var(--cookie); position: relative; }
.cookie-demo::before { content: '🍪'; position: absolute; top: -20px; left: 22px; font-size: 36px; transform: rotate(-12deg); }
.cookie-demo h3 { margin: 4px 0 6px; font-size: 21px; }
.cookie-demo p { margin: 0 0 18px; font-size: 14.5px; color: var(--muted); }
.cookie-demo .demo-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cookie-demo .demo-btns .btn { font-size: 15px; padding: 9px 22px; }
.cookie-demo .settings-link { font-size: 13px; color: var(--muted); text-decoration: underline; margin-left: auto; cursor: pointer; }
.trackers { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 2.5px dashed var(--line); }
.tchip { font-size: 12.5px; font-weight: 700; background: var(--bg); border: 2px solid var(--line); border-radius: 999px; padding: 5px 13px; transition: all .25s ease; }
.tchip:nth-child(odd) { transform: rotate(-1.6deg); }
.tchip:nth-child(even) { transform: rotate(1.3deg); }
.tchip.on { background: var(--lime); border-color: var(--ink); transform: rotate(-2deg) scale(1.05); }
.demo-result { margin-top: 14px; font-size: 14px; font-weight: 600; display: none; }
.demo-result.show { display: block; animation: pop .3s ease; }
@keyframes pop { 0% { transform: scale(.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.demo-result .reset { font-size: 12.5px; font-weight: 400; color: var(--muted); cursor: pointer; text-decoration: underline; margin-left: 6px; }

/* suchar dnia — dymek */
.suchar { max-width: 560px; margin: 40px auto 0; background: var(--surface); border: 3px solid var(--ink);
  border-radius: 24px 20px 22px 26px; padding: 16px 22px; font-size: 15px; position: relative;
  transform: rotate(.7deg); box-shadow: 5px 6px 0 var(--lime); }
.suchar::before { content: ''; position: absolute; top: -14px; left: 46px; width: 22px; height: 22px;
  background: var(--surface); border-left: 3px solid var(--ink); border-top: 3px solid var(--ink); transform: rotate(65deg) skew(20deg); }
.suchar b { color: var(--ink); }
.suchar button { border: 0; background: none; font-family: inherit; font-size: 13px; color: var(--teal); cursor: pointer; text-decoration: underline; padding: 0; }

/* sekcje wspólne strony głównej */
section { padding: 48px 0 10px; position: relative; }
h2 { font-size: clamp(30px, 4.6vw, 42px); font-weight: 800; text-align: center; margin: 0 0 8px; transform: rotate(-1.1deg); }
section:nth-of-type(even) h2 { transform: rotate(.9deg); }
h2 .cookie-dot { display: inline-block; width: 19px; height: 18px; background: var(--cookie-dark); border: 2.5px solid var(--ink);
  border-radius: 40% 60% 55% 45%; margin-right: 12px; transform: rotate(12deg); }
.kicker { text-align: center; color: var(--choc); margin: 0 auto 40px; max-width: 34em;
  font-family: 'Caveat', cursive; font-size: 21px; transform: rotate(-.5deg); }

/* narzędzia */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px; margin-bottom: 56px; }
.tool { background: var(--surface); border: 3px solid var(--ink); border-radius: 26px 20px 24px 22px;
  padding: 26px 24px 24px; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.tool:nth-child(1) { transform: rotate(-1.9deg); box-shadow: 6px 7px 0 var(--yellow); }
.tool:nth-child(2) { transform: rotate(1.4deg) translateY(9px); box-shadow: 6px 7px 0 var(--lime); }
.tool:nth-child(3) { transform: rotate(-1.3deg) translateY(2px); box-shadow: 6px 7px 0 var(--cookie); }
.tool .ico { display: inline-block; transform: rotate(-8deg); font-size: 38px; line-height: 1; }
.tool:nth-child(2) .ico { transform: rotate(7deg); }
.tool h3 { margin: 0; font-size: 19px; }
.tool p { margin: 0; font-size: 14px; color: var(--muted); flex: 1; }
.tool .btn { align-self: center; font-size: 14px; padding: 10px 24px; }
.tool .free { font-family: 'Caveat', cursive; font-size: 19px; color: var(--lime-strong); }

/* pasek strachu */
.fearbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; padding: 50px 0 10px; }
.fear { background: var(--surface); border: 3px solid var(--ink); border-radius: 24px 28px 20px 30px; padding: 22px 24px; font-size: 14px; }
.fear:nth-child(1) { transform: rotate(-2.6deg); box-shadow: 7px 8px 0 var(--cookie); }
.fear:nth-child(2) { transform: rotate(2deg) translateY(8px); box-shadow: 7px 8px 0 var(--lime); }
.fear:nth-child(3) { transform: rotate(-1.8deg); box-shadow: 7px 8px 0 var(--yellow); }
.fear:hover { transform: rotate(0) scale(1.02); transition: transform .2s ease; }
.fear b { display: block; font-size: 17px; margin-bottom: 4px; font-family: 'Baloo 2', sans-serif; }
.fear .art { color: var(--muted); font-size: 12.5px; }

/* pojęcia */
.pojecia { text-align: center; margin: 34px auto 0; padding-bottom: 60px; max-width: 46em; font-size: 15px; }
.pojecia a { display: inline-block; background: var(--surface); border: 2px solid var(--ink); border-radius: 999px;
  padding: 6px 16px; margin: 6px 4px 0; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 14px;
  color: var(--ink); text-decoration: none; transition: transform .15s ease; }
.pojecia a:hover { transform: rotate(-2deg) scale(1.05); background: var(--lime); }
.pojecia a::after { content: ' →'; color: var(--lime-strong); }

/* jak działa */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.step { background: var(--surface); border: 3px solid var(--ink); border-radius: 26px 20px 28px 22px; padding: 30px 26px 26px; position: relative; }
.step:nth-child(1) { transform: rotate(-2deg); box-shadow: 6px 7px 0 var(--lime); }
.step:nth-child(2) { transform: rotate(1.7deg) translateY(10px); box-shadow: 6px 7px 0 var(--cookie); }
.step:nth-child(3) { transform: rotate(-1.5deg) translateY(3px); box-shadow: 6px 7px 0 var(--yellow); }
.step .num { position: absolute; top: -20px; left: 20px; width: 42px; height: 40px; border-radius: 45% 55% 50% 50%;
  background: var(--cookie); border: 3px solid var(--ink); color: var(--ink);
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; transform: rotate(-10deg); }
.step h3 { margin: 6px 0 8px; font-size: 19px; }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* funkcje */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 3px solid var(--ink); border-radius: 24px 20px 22px 26px; padding: 26px;
  transition: transform .18s ease, box-shadow .18s ease; }
.card:nth-child(4n+1) { transform: rotate(-1.7deg); box-shadow: 5px 6px 0 var(--cookie); }
.card:nth-child(4n+2) { transform: rotate(1.4deg) translateY(7px); box-shadow: 5px 6px 0 var(--lime); }
.card:nth-child(4n+3) { transform: rotate(-1.2deg) translateY(3px); box-shadow: 5px 6px 0 var(--yellow); }
.card:nth-child(4n+4) { transform: rotate(1.8deg) translateY(9px); box-shadow: 5px 6px 0 var(--choc); }
.card:hover { transform: rotate(0) translateY(-4px) scale(1.02); box-shadow: 8px 10px 0 var(--ink); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* founding */
.founding { background: var(--ink); color: #fff7ea; border-radius: 34px 26px 30px 28px; padding: 56px 36px 48px;
  text-align: center; margin: 64px 0 10px; position: relative; box-shadow: 10px 12px 0 var(--cookie); transform: rotate(-.5deg); }
.founding::before { content: ''; position: absolute; inset: 14px; border: 2px dashed rgba(255,247,234,.18); border-radius: 26px 20px 24px 22px; pointer-events: none; }
.founding .sticker { position: absolute; top: -26px; right: 28px; background: var(--yellow); color: var(--ink);
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 15px; padding: 11px 20px; border-radius: 999px;
  border: 3px solid var(--ink); transform: rotate(7deg); box-shadow: 4px 5px 0 rgba(0,0,0,.35); }
.founding h2 { color: #fff7ea; }
.founding .price { font-family: 'Baloo 2', sans-serif; font-size: 60px; font-weight: 800; color: var(--lime); line-height: 1.1; }
.founding .price small { font-size: 18px; color: #c9b8a2; font-weight: 400; font-family: 'Open Sans', sans-serif; }
.founding p { color: #d8c9b5; max-width: 33em; margin: 12px auto 28px; }

@media (max-width: 700px) {
  .mascot-note, .deco, .bg-deco { display: none; }
}
