/* NovaByteForge Quiz — system wizualny: „papier + naklejki” (pomidor / bazylia / ser) */
:root {
  --paper: #fff4e0;
  --paper-2: #ffe8c4;
  --cream: #fffaf0;
  --ink: #1b1a17;
  --ink-2: #4a463d;
  --muted: #7a7466;
  --tomato: #e8402a;
  --tomato-d: #c22f1b;
  --basil: #2e7d4f;
  --basil-l: #d7eddd;
  --cheese: #ffc83d;
  --white: #ffffff;
  --line: 2px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-s: 3px 3px 0 var(--ink);
  --r: 18px;
  --f-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, sans-serif;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(27, 26, 23, 0.1) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
p { margin: 0; }
::selection { background: var(--cheese); color: var(--ink); }
:focus-visible { outline: 3px solid var(--basil); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- przyciski ---------- */
.btn {
  --bg: var(--tomato);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.65rem 1.4rem;
  font: 700 1rem/1 var(--f-display);
  letter-spacing: -0.01em;
  color: var(--fg);
  background: var(--bg);
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-s);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.2s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled], .btn.is-disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: var(--shadow-s); }
.btn--ghost { --bg: var(--white); --fg: var(--ink); }
.btn--basil { --bg: var(--basil); }
.btn--cheese { --bg: var(--cheese); --fg: var(--ink); }
.btn--ink { --bg: var(--ink); --fg: var(--paper); }
.btn--sm { min-height: 2.4rem; padding: 0.4rem 0.9rem; font-size: 0.9rem; border-radius: 11px; }
.btn--lg { min-height: 3.5rem; padding: 0.8rem 1.8rem; font-size: 1.12rem; }
.btn--block { width: 100%; }
.link { color: var(--tomato-d); font-weight: 700; text-underline-offset: 3px; }

/* ---------- naklejki, karty ---------- */
.card { background: var(--white); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.4rem; }
.card--flat { box-shadow: none; }
.sticker {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  font: 800 0.85rem/1.2 var(--f-display);
  background: var(--cheese);
  border: var(--line);
  border-radius: 999px;
  transform: rotate(-2.5deg);
  box-shadow: 2px 2px 0 var(--ink);
}
.pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.7rem; font: 700 0.78rem/1.6 var(--f-body); border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); }
.pill--ok { background: var(--basil-l); }
.pill--warn { background: #ffe9a8; }
.pill--bad { background: #ffd1c9; }
.pill--free { background: var(--paper-2); }
.eyebrow { font: 800 0.8rem/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.14em; color: var(--tomato-d); }

/* ---------- nagłówek ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 244, 224, 0.92); backdrop-filter: blur(8px); border-bottom: var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font: 800 1.25rem/1 var(--f-display); letter-spacing: -0.03em; }
.brand__mark { width: 2.4rem; height: 2.4rem; }
.brand small { display: block; font: 600 0.62rem/1 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.nav a:not(.btn):hover { color: var(--tomato-d); }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 800; letter-spacing: -0.04em; }
.hero h1 em { font-style: normal; color: var(--tomato); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.02em; height: 0.16em;
  background: var(--cheese); z-index: -1; border-radius: 99px; transform: rotate(-1deg);
}
.hero__lead { margin-top: 1.4rem; font-size: 1.2rem; color: var(--ink-2); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: 1.6rem; font-weight: 700; font-size: 0.92rem; color: var(--ink-2); }
.hero__proof span::before { content: "✓"; color: var(--basil); margin-right: 0.35rem; font-weight: 900; }

.stage { position: relative; display: grid; place-items: center; min-height: 460px; }
.stage__pizza { position: absolute; width: min(430px, 88%); right: -8%; top: -4%; animation: spin 38s linear infinite; filter: drop-shadow(6px 6px 0 var(--ink)); }
.stage__phone {
  position: relative; width: min(300px, 78%); aspect-ratio: 9 / 17;
  background: var(--white); border: 3px solid var(--ink); border-radius: 34px; box-shadow: 8px 8px 0 var(--ink);
  padding: 1.1rem 1rem; display: flex; flex-direction: column; gap: 0.7rem; transform: rotate(3deg);
  animation: bob 5s ease-in-out infinite;
}
.stage__phone::before { content: ""; width: 3.4rem; height: 0.35rem; background: var(--ink); border-radius: 9px; margin: 0 auto 0.3rem; }
.mock__bar { height: 0.6rem; border: 1.5px solid var(--ink); border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.mock__bar i { display: block; height: 100%; width: 40%; background: var(--tomato); animation: fill 6s ease-in-out infinite; }
.mock__q { font: 800 1.15rem/1.15 var(--f-display); margin-top: 0.4rem; }
.mock__a { padding: 0.7rem 0.8rem; border: 2px solid var(--ink); border-radius: 12px; font-weight: 700; font-size: 0.92rem; background: var(--cream); }
.mock__a:nth-child(4) { background: var(--cheese); box-shadow: 3px 3px 0 var(--ink); transform: translate(-2px, -2px); }
.stage__sticker { position: absolute; z-index: 3; }
.stage__sticker--a { left: -2%; bottom: 14%; transform: rotate(-8deg); background: var(--basil-l); }
.stage__sticker--b { right: -2%; bottom: 4%; transform: rotate(5deg); background: #ffd1c9; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: rotate(1.5deg) translateY(-10px); } }
@keyframes fill { 0%, 100% { width: 22%; } 60% { width: 78%; } }

/* ---------- wstęga ---------- */
.ribbon { overflow: hidden; background: var(--ink); color: var(--paper); border-block: var(--line); transform: rotate(-1deg); margin: 1rem -2%; }
.ribbon__track { display: flex; gap: 2.2rem; width: max-content; padding: 0.8rem 0; font: 800 1.3rem/1 var(--f-display); animation: marquee 32s linear infinite; }
.ribbon__track span::after { content: "🍕"; margin-left: 2.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sekcje ---------- */
.sec { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sec__head { max-width: 40rem; margin-bottom: 2.6rem; }
.sec__head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-top: 0.7rem; letter-spacing: -0.035em; }
.sec__head p { margin-top: 0.9rem; color: var(--ink-2); font-size: 1.1rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step { position: relative; padding-top: 2.4rem; }
.step__n { position: absolute; top: -1.1rem; left: 1.2rem; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; font: 800 1.3rem/1 var(--f-display); background: var(--cheese); border: var(--line); border-radius: 50%; box-shadow: 2px 2px 0 var(--ink); }
.step h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-2); }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feat { display: flex; flex-direction: column; gap: 0.6rem; }
.feat__ic { width: 3rem; height: 3rem; display: grid; place-items: center; background: var(--paper-2); border: var(--line); border-radius: 14px; font-size: 1.4rem; }
.feat:nth-child(3n+2) .feat__ic { background: var(--basil-l); }
.feat:nth-child(3n) .feat__ic { background: #ffe9a8; }
.feat h3 { font-size: 1.2rem; }
.feat p { color: var(--ink-2); font-size: 0.97rem; }

.demo { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.demo__frame { border: 3px solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); overflow: hidden; background: var(--paper); min-height: 560px; }
.demo__note { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; max-width: 880px; }
.plan { display: flex; flex-direction: column; gap: 1rem; position: relative; }
.plan--hi { background: var(--cheese); }
.plan__price { font: 800 3rem/1 var(--f-display); letter-spacing: -0.04em; }
.plan__price small { font: 700 1rem/1 var(--f-body); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.plan li { display: flex; gap: 0.6rem; font-weight: 500; }
.plan li::before { content: "✓"; flex: none; width: 1.4rem; height: 1.4rem; display: grid; place-items: center; font-weight: 900; font-size: 0.8rem; background: var(--basil); color: #fff; border-radius: 50%; margin-top: 0.12rem; }
.plan .sticker { position: absolute; top: -0.9rem; right: 1.2rem; background: var(--tomato); color: #fff; }

.faq { display: grid; gap: 0.9rem; max-width: 820px; }
.faq details { background: var(--white); border: var(--line); border-radius: 16px; padding: 0 1.2rem; box-shadow: var(--shadow-s); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 0; font: 700 1.1rem/1.3 var(--f-display); display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 1.2rem; color: var(--ink-2); }

.cta { background: var(--tomato); color: #fff; border: var(--line); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); padding: clamp(2rem, 5vw, 3.6rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 28rem; }
.cta p { margin-top: 0.6rem; opacity: 0.95; max-width: 30rem; }

.foot { border-top: var(--line); background: var(--ink); color: var(--paper); padding: 2.4rem 0 2rem; margin-top: 3rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.foot a { color: var(--paper); opacity: 0.85; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.foot small { display: block; opacity: 0.6; margin-top: 0.6rem; }
.foot .partner { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.8rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 244, 224, 0.2); font-size: 0.8rem; opacity: 0.85; }
.foot .partner img { height: 1.55rem; width: auto; background: #fff; border-radius: 0.3rem; padding: 0.18rem 0.35rem; }

/* ---------- strony prawne / 404 ---------- */
.doc { max-width: 760px; padding: 3rem 0 2rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.4rem; }
.doc h2 { font-size: 1.4rem; margin: 2rem 0 0.6rem; }
.doc p, .doc li { color: var(--ink-2); margin-bottom: 0.7rem; }
.doc ul { padding-left: 1.2rem; }
.nf { display: grid; place-items: center; min-height: 100vh; padding: 2rem; }
.nf__box p { color: var(--ink-2); }
.nf__box { max-width: 30rem; text-align: center; display: grid; gap: 1rem; justify-items: center; }
.nf__code { font: 800 7rem/0.9 var(--f-display); color: var(--tomato); -webkit-text-stroke: 3px var(--ink); }

/* ---------- animacja wejścia ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero__grid, .demo { grid-template-columns: 1fr; }
  .stage { min-height: 400px; }
  .steps, .feats { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
  .steps, .feats { grid-template-columns: 1fr; }
  .nav .btn--ghost { display: none; }
  .hero__cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage__pizza, .stage__phone, .ribbon__track, .mock__bar i { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
}
