/* ==========================================================================
   Znajdź słówko! — arkusz stylów
   ========================================================================== */

:root {
  --paper: #fbf7ef;
  --paper-2: #f4eee1;
  --card: #ffffff;
  --ink: #1b2450;
  --ink-2: #4a5275;
  --ink-3: #8a90aa;
  --line: rgba(27, 36, 80, 0.1);

  --coral: #ee5b3b;
  --coral-d: #d4452a;
  --sun: #f5c842;
  --mint: #4fd6b0;
  --leaf: #7cc383;
  --indigo: #2b2e9e;
  --violet: #7c5cff;

  --f-display: 'Nunito', 'DM Sans', system-ui, sans-serif;
  --f-serif: 'Fraunces', Georgia, serif;
  --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(27, 36, 80, .06), 0 2px 8px rgba(27, 36, 80, .05);
  --shadow: 0 2px 4px rgba(27, 36, 80, .04), 0 12px 32px -8px rgba(27, 36, 80, .16);
  --shadow-lg: 0 4px 10px rgba(27, 36, 80, .05), 0 30px 60px -20px rgba(27, 36, 80, .3);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typography helpers ---------- */
.serif-i { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--ink-2); }
.kicker {
  font: 600 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font: 600 16px/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn-primary { --bg: var(--coral); box-shadow: 0 8px 20px -8px rgba(238,91,59,.7), inset 0 -2px 0 rgba(0,0,0,.12); }
.btn-primary:hover { --bg: var(--coral-d); box-shadow: 0 14px 28px -10px rgba(238,91,59,.8), inset 0 -2px 0 rgba(0,0,0,.12); }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { --bg: var(--ink); --fg: #fff; }
.btn-light { --bg: #fff; --fg: var(--ink); box-shadow: var(--shadow); }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-amazon::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6h15l-1.5 9h-12z'/%3E%3Cpath d='M6 6L5 3H2'/%3E%3Ccircle cx='9' cy='20' r='1.3'/%3E%3Ccircle cx='18' cy='20' r='1.3'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6h15l-1.5 9h-12z'/%3E%3Cpath d='M6 6L5 3H2'/%3E%3Ccircle cx='9' cy='20' r='1.3'/%3E%3Ccircle cx='18' cy='20' r='1.3'/%3E%3C/svg%3E") center/contain no-repeat;
}
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; color: var(--coral); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(251, 247, 239, .82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid; grid-template-columns: repeat(2, 15px); grid-template-rows: repeat(2, 15px); gap: 2px;
  padding: 4px; border-radius: 9px; background: var(--ink); transform: rotate(-4deg);
  transition: transform .4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(4deg) scale(1.05); }
.brand-mark span {
  display: grid; place-items: center; border-radius: 3px;
  font: 700 10px/1 var(--f-display); color: var(--ink); background: #fff;
}
.brand-mark span:nth-child(1) { background: var(--sun); }
.brand-mark span:nth-child(2) { background: var(--mint); }
.brand-mark span:nth-child(3) { background: #fff; }
.brand-mark span:nth-child(4) { background: var(--coral); color: #fff; }
.brand-name { font: 800 21px/1 var(--f-display); letter-spacing: -0.01em; }
.brand-name em { font-style: normal; color: var(--coral); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav-links a:not(.btn):hover { color: var(--ink); background: rgba(27,36,80,.06); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: var(--coral); border-radius: 2px;
}
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 clamp(64px, 9vw, 120px);
  background:
    radial-gradient(60% 50% at 85% 30%, rgba(245,200,66,.12), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(79,214,176,.2), transparent 70%),
    var(--paper);
}
.hero-grid {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(var(--cols, 24), 1fr);
  align-content: start; gap: 0;
  font: 500 clamp(14px, 1.5vw, 20px)/1 var(--f-display);
  color: rgba(27,36,80,.07);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 85%);
          mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 85%);
  pointer-events: none; user-select: none;
}
.hero-grid span {
  display: grid; place-items: center; aspect-ratio: 1;
}

.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }

.hero-title {
  font: 900 clamp(64px, 11vw, 148px)/.95 var(--f-display);
  letter-spacing: -0.035em; color: var(--ink);
}
.ht-line { display: block; }
.ht-accent { color: var(--coral); }
.ht-mark { position: relative; display: inline-block; z-index: 0; }
.ht-mark::before {
  content: ""; position: absolute; z-index: -1;
  left: -.06em; right: -.06em; top: 54%; height: .32em;
  background: var(--sun); border-radius: .2em; opacity: .85;
  transform-origin: left center; transform: scaleX(0) rotate(-1.5deg);
  animation: marker 1s .7s var(--ease) forwards;
}
@keyframes marker { to { transform: scaleX(1) rotate(-1.5deg); } }

.hero-lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 520px; }
.hero-lead em { font-style: normal; font-weight: 600; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: clamp(20px, 4vw, 44px); }
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.hero-stats li + li { padding-left: clamp(20px, 4vw, 44px); border-left: 1px solid var(--line); }
.hero-stats strong { font: 800 clamp(26px, 3vw, 34px)/1 var(--f-display); }
.hero-stats span { font-size: 14px; color: var(--ink-3); }

.hero-visual { position: relative; aspect-ratio: 600 / 560; max-width: 600px; justify-self: center; width: 100%; }
/* kompozycja „na biurku”: strona z wykreślanką pod spodem, okładka na wierzchu */
.hero-desk { position: absolute; inset: 4% 0; }
.desk-page {
  position: absolute; right: 2%; top: 6%; width: 62%;
  background: #fff; border-radius: 2px; transform: rotate(3deg);
  box-shadow: 0 1px 2px rgba(27,36,80,.08), 0 30px 50px -24px rgba(27,36,80,.35);
}
.desk-page img { display: block; width: 100%; height: auto; }
.desk-cover {
  position: absolute; left: 4%; bottom: 4%; width: 52%;
  border-radius: 2px 5px 5px 2px; overflow: hidden; transform: rotate(-4deg);
  outline: 1px solid transparent; backface-visibility: hidden;
  box-shadow: 0 2px 3px rgba(27,36,80,.12), 0 40px 60px -22px rgba(27,36,80,.5);
}
.desk-cover img { display: block; width: 100%; aspect-ratio: 850 / 1100; object-fit: cover; }
/* grzbiet: zagięcie okładki przy lewej krawędzi */
.desk-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.16), rgba(255,255,255,.18) 1.5%, transparent 4%);
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head h2 { font: 800 clamp(38px, 5.4vw, 66px)/1.02 var(--f-display); letter-spacing: -0.035em; }
.section-head .serif-i { font-size: .92em; }
.section-lead { margin-top: 22px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 620px; }

/* ---------- Stairs (seria) ---------- */
.stairs {
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  gap: clamp(12px, 2vw, 28px);
  padding-bottom: 4px;
}
.stair {
  --lift: 0px;
  display: flex; flex-direction: column; gap: 16px; text-decoration: none;
  margin-bottom: var(--lift);
}
.stair-cover {
  position: relative; border-radius: 4px 10px 10px 4px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  transform: perspective(900px) rotateY(0deg);
}
.stair-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(255,255,255,.15) 2.5%, transparent 6%),
              linear-gradient(115deg, transparent 40%, rgba(255,255,255,.25) 50%, transparent 60%);
  background-size: 100% 100%, 250% 100%; background-position: 0 0, 120% 0;
  transition: background-position .9s var(--ease);
}
.stair:hover .stair-cover { transform: perspective(900px) rotateY(-8deg) translateY(-8px); box-shadow: var(--shadow-lg); }
.stair:hover .stair-cover::after { background-position: 0 0, -40% 0; }
.stair-meta { display: flex; flex-direction: column; gap: 6px; }
.stair-step {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.stair-step b {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--c); color: var(--ci); font: 700 12px/1 var(--f-display); letter-spacing: 0;
}
.stair-name { font: 700 19px/1.2 var(--f-display); }
.stair-age { font-size: 14px; color: var(--ink-2); }
.stair-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.stair-bar i { display: block; height: 100%; width: var(--w); background: var(--c); border-radius: 3px; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease) .3s; }
.stair.in .stair-bar i, .reveal.in .stair-bar i { transform: scaleX(1); }

.special {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: 200px 1fr auto; align-items: center; gap: clamp(20px, 4vw, 48px);
  padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg);
  background: linear-gradient(120deg, #fff 0%, #fff6ef 100%);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.special::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(200,38,47,.12) 1.5px, transparent 1.5px);
  background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent 50%, #000); mask-image: linear-gradient(90deg, transparent 50%, #000);
  pointer-events: none;
}
.special img { border-radius: 4px 10px 10px 4px; box-shadow: var(--shadow); transform: rotate(-3deg); transition: transform .5s var(--ease); }
.special:hover img { transform: rotate(0) scale(1.03); }
.special .tag {
  display: inline-block; padding: 6px 12px; border-radius: 999px; margin-bottom: 12px;
  background: rgba(200,38,47,.1); color: #c8262f; font-size: 13px; font-weight: 600;
}
.special h3 { font: 700 clamp(26px, 3vw, 34px)/1.1 var(--f-display); margin-bottom: 10px; }
.special p { color: var(--ink-2); max-width: 520px; }
.special .btn { position: relative; }

/* ---------- Viewer (wnętrze) ---------- */
.viewer {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: clamp(16px, 3vw, 32px);
}
.viewer-tabs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 4px; margin: -4px -4px 24px;
}
.viewer-tabs::-webkit-scrollbar { display: none; }
.viewer-tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: all .25s var(--ease);
}
.viewer-tab i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.viewer-tab:hover { border-color: var(--ink-3); color: var(--ink); }
.viewer-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.viewer-stage { position: relative; display: flex; align-items: center; gap: 12px; }
.spread {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border-radius: 6px;
  box-shadow: 0 0 0 1px var(--line), 0 30px 50px -30px rgba(27,36,80,.45);
  position: relative; overflow: hidden; touch-action: pan-y;
}
.spread::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 60px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(27,36,80,.08) 45%, rgba(27,36,80,.16) 50%, rgba(27,36,80,.08) 55%, transparent);
  pointer-events: none;
}
.page { margin: 0; aspect-ratio: 1275 / 1650; cursor: zoom-in; background: #fff; }
.page img { width: 100%; height: 100%; object-fit: contain; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.spread.switching .page img { opacity: 0; transform: translateY(6px); }

.viewer-nav {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), background .2s;
}
.viewer-nav svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.viewer-nav:hover { transform: scale(1.08); background: var(--paper); }
.viewer-nav:disabled { opacity: .3; pointer-events: none; }

.viewer-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.viewer-caption { font-size: 15px; color: var(--ink-2); }
.viewer-caption strong { color: var(--ink); font-weight: 600; }
.viewer-dots { display: flex; gap: 8px; }
.viewer-dots button { width: 9px; height: 9px; padding: 0; border-radius: 9px; border: 0; background: var(--line); transition: all .3s var(--ease); }
.viewer-dots button[aria-current="true"] { width: 28px; background: var(--coral); }

/* ---------- Try it ---------- */
.try {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.try h3 { font: 700 clamp(30px, 3.6vw, 44px)/1.05 var(--f-display); margin-bottom: 16px; }
.try-copy > p { color: var(--ink-2); }
.try-words { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.try-words li {
  padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line);
  font: 700 15px/1 var(--f-display); letter-spacing: .06em; transition: all .4s var(--ease);
}
.try-words li.found { background: var(--c, var(--mint)); border-color: transparent; color: var(--ink); text-decoration: line-through; text-decoration-thickness: 2px; }
.try-done { margin-top: 20px; font-weight: 600; }

.try-board-wrap { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(14px, 2.4vw, 28px); }
.try-board {
  --n: 10;
  position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr);
  border: 2px solid var(--ink); border-radius: 14px; padding: 6px;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.try-board .cell {
  aspect-ratio: 1; display: grid; place-items: center; position: relative; z-index: 1;
  font: 500 clamp(15px, 2.4vw, 22px)/1 'DM Sans', ui-monospace, monospace; color: var(--ink);
  border-radius: 8px; cursor: pointer; transition: background .15s, color .15s;
}
.try-board .cell.sel { background: rgba(124,92,255,.22); }
.try-board .cell.hit { color: var(--ink); font-weight: 700; }
.try-board svg.strokes { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); pointer-events: none; z-index: 0; }
.try-board svg.strokes line { stroke-linecap: round; opacity: .55; animation: drawIn .4s var(--ease) both; }
@keyframes drawIn { from { opacity: 0; } }
.try-board.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.benefit {
  position: relative; padding: 32px 28px 30px; border-radius: var(--r-lg); background: var(--card);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.benefit::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: var(--c); opacity: .12; transition: transform .6s var(--ease);
}
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.benefit:hover::before { transform: scale(1.6); }
.benefit-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 18%, white); margin-bottom: 22px;
}
.benefit-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { font: 700 21px/1.2 var(--f-display); margin-bottom: 10px; }
.benefit p { color: var(--ink-2); font-size: 16px; }

.quote { margin: clamp(56px, 8vw, 96px) auto 0; max-width: 860px; text-align: center; }
.quote blockquote {
  margin: 0; font: 400 clamp(24px, 3.2vw, 38px)/1.3 var(--f-serif); font-style: italic; letter-spacing: -0.01em;
}

/* ---------- Editions ---------- */
.editions { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 28px); }
.edition {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .45s, filter .45s;
}
.edition:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.edition-top {
  position: relative; padding: 30px 30px 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, white), color-mix(in srgb, var(--c) 12%, white));
}
.edition-top::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--c) 55%, transparent) 1.2px, transparent 1.3px);
  background-size: 16px 16px; opacity: .45;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.edition-cover {
  position: relative; width: 66%; margin: 0 auto -28px; border-radius: 4px 8px 8px 4px; overflow: hidden;
  box-shadow: 0 24px 40px -18px rgba(27,36,80,.55);
  transition: transform .6s var(--ease);
}
.edition-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(255,255,255,.14) 3%, transparent 7%); }
.edition:hover .edition-cover { transform: translateY(-6px) rotate(-1.5deg); }
.edition-age {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff;
  font: 700 14px/1 var(--f-display);
}
.edition-body { display: flex; flex-direction: column; gap: 14px; padding: 52px 28px 28px; flex: 1; }
.edition-level {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.edition-level::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.edition h3 { font: 700 24px/1.15 var(--f-display); }
.edition-tagline { font-family: var(--f-serif); font-style: italic; color: var(--ink-2); font-size: 17px; line-height: 1.4; margin-top: -6px; }
.edition-desc { color: var(--ink-2); font-size: 15.5px; }
.edition-features { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.edition-features li {
  font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: 8px;
  background: color-mix(in srgb, var(--c) 14%, white); color: var(--ink);
}
.edition-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 0; padding: 14px 0 0;
  border-top: 1px dashed var(--line);
}
.edition-meta div { display: flex; flex-direction: column; gap: 2px; }
.edition-meta dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.edition-meta dd { margin: 0; font: 700 15px/1.2 var(--f-display); }
.edition-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; }
.edition-actions .btn-primary { flex: 1; }
.edition-actions .btn-ghost { padding-inline: 16px; }

/* ---------- Upcoming ---------- */
.upcoming { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 28px); }
.soon {
  display: grid; grid-template-columns: 1fr; gap: 24px; align-content: start;
  padding: 28px; border-radius: var(--r-lg); background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.soon:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--c), var(--shadow); }
.soon-cover {
  position: relative; width: 52%; aspect-ratio: 850/1100; border-radius: 4px 8px 8px 4px; overflow: hidden;
  background: color-mix(in srgb, var(--c) 14%, white);
  border: 1.5px dashed color-mix(in srgb, var(--c) 60%, white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
}
.soon-cover::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(color-mix(in srgb, var(--c) 18%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--c) 18%, transparent) 1px, transparent 1px);
  background-size: 14px 14px;
}
.soon-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.soon-letters { position: relative; font: 700 clamp(22px, 2.6vw, 30px)/1 var(--f-display); color: var(--c); letter-spacing: .02em; }
.soon-cover small { position: relative; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.soon-status {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font: 600 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--c);
}
.soon-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 50%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.soon h3 { font: 700 19px/1.2 var(--f-display); margin-bottom: 6px; }
.soon .soon-age { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.soon p:last-child { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font: 700 clamp(18px, 1.8vw, 21px)/1.3 var(--f-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b2450' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), background-color .35s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--sun); }
.faq details p { padding: 0 48px 26px 0; color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: clamp(80px, 10vw, 130px) 0;
  background:
    radial-gradient(50% 80% at 15% 20%, rgba(124,92,255,.55), transparent 70%),
    radial-gradient(50% 80% at 90% 90%, rgba(238,91,59,.45), transparent 70%),
    var(--ink);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-band h2 { font: 800 clamp(36px, 5.6vw, 68px)/1.05 var(--f-display); letter-spacing: -0.03em; }
.cta-band .ht-mark { color: var(--ink); padding: 0 .14em; margin: 0 .04em; }
/* Pełne zakreślenie całego słowa, jak znaleziony wyraz na planszy — granat na żółtym, czytelny na ciemnym tle */
.cta-band .ht-mark::before { animation: none; top: .06em; bottom: -.04em; height: auto; left: 0; right: 0; border-radius: .28em; opacity: 1; transform: rotate(-1.5deg); }
.cta-band p { font-size: 18px; opacity: .8; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: #121a3d; color: rgba(255,255,255,.75); padding: 56px 0 40px; font-size: 15px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p a { color: #fff; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.footer-brand p a:hover { text-decoration-color: var(--sun); }
.footer-publisher {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: 14px; font-weight: 500; text-decoration: none;
  transition: border-color .2s, background .2s;
}
.footer-publisher span { color: var(--sun); transition: transform .25s var(--ease); }
.footer-publisher:hover { border-color: var(--sun); background: rgba(255,255,255,.05); }
.footer-publisher:hover span { transform: translateX(3px); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; align-content: start; }
.footer-nav a { text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: var(--sun); }
.footer-legal { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: rgba(18, 26, 61, .86); backdrop-filter: blur(8px);
  animation: fade .3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: calc(100vh - 48px); width: auto; border-radius: 6px; box-shadow: var(--shadow-lg); background: #fff; animation: zoomIn .35s var(--ease); }
.lightbox-close {
  position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: #fff; font-size: 28px; line-height: 1;
}
@keyframes fade { from { opacity: 0; } }
@keyframes zoomIn { from { transform: scale(.95); opacity: 0; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Responsywność
   ========================================================================== */
@media (max-width: 1080px) {
  .editions { grid-template-columns: repeat(2, 1fr); }
  .upcoming { grid-template-columns: 1fr; max-width: 640px; }
  .soon { grid-template-columns: 160px 1fr; align-items: center; }
  .soon-cover { width: 100%; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; z-index: 2; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 8px;
    background: var(--paper);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav-links a:not(.btn) { font: 700 28px/1 var(--f-display); color: var(--ink); padding: 14px 20px; }
  .nav-links a.active::after { display: none; }
  .nav-cta { margin: 20px 0 0; padding: 16px 28px; font-size: 17px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav-links { opacity: 1; visibility: visible; }
  .brand { position: relative; z-index: 2; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; order: -1; margin-bottom: -10px; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }

  .stairs { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px var(--gutter) 12px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
  .stairs::-webkit-scrollbar { display: none; }
  .stair { scroll-snap-align: start; }

  .special { grid-template-columns: 140px 1fr; }
  .special .btn { grid-column: 1 / -1; justify-self: start; }

  .try { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .section-head { position: static; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .btn-lg { padding: 16px 24px; font-size: 16px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-stats li + li { padding-left: 16px; }

  .stairs { grid-template-columns: repeat(5, 46%); }
  .stair { margin-bottom: 0 !important; }

  .special { grid-template-columns: 1fr; text-align: left; }
  .special img { max-width: 160px; }

  .viewer-stage { gap: 0; }
  .viewer-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; }
  .viewer-nav:hover { transform: translateY(-50%) scale(1.05); }
  .viewer-nav.prev { left: -8px; }
  .viewer-nav.next { right: -8px; }
  .spread { grid-template-columns: 1fr; }
  .spread::after { display: none; }
  .spread .page-right { display: none; }
  .viewer-foot { flex-direction: column; align-items: stretch; text-align: center; }
  .viewer-dots { justify-content: center; }


  .benefits, .editions { grid-template-columns: 1fr; }
  .edition-cover { width: 58%; }
  .hero-stats strong { font-size: 24px; white-space: nowrap; }

  .soon { grid-template-columns: 110px 1fr; gap: 16px; padding: 16px; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

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