/* Landing Funily: plan tygodnia przypięty do żółtych drzwi. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-stretch: 75% 100%; font-display: swap;
  src: url("fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-stretch: 75% 100%; font-display: swap;
  src: url("fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Shantell Sans"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("fonts/shantell-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Shantell Sans"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("fonts/shantell-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --door: #FFD23F;
  --door-pale: #FFF3BF;
  --sheet: #FFFFFF;
  --ink: #1B1B2F;
  --ink-soft: #45465E;
  --rule: rgba(27, 27, 47, .3);
  --plecak: #FF6B4A;
  --zeby: #3DB4F2;
  --naczynia: #5DBB63;
  --misja: #9B7BFF;
  --gold: #F5B700;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --hand: "Shantell Sans", "Comic Neue", "Segoe Print", cursive;
  --pad: clamp(20px, 5vw, 64px);
  --rail: clamp(52px, 8vw, 96px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--ink) var(--door); }
body {
  margin: 0;
  background: var(--door);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--display);
  font-optical-sizing: auto;
  caret-color: var(--plecak);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--door); }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .22em; text-decoration-color: var(--zeby); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 5; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* Drzwi i karton planu */
.door { padding: clamp(34px, 4vw, 56px) clamp(10px, 3vw, 40px) clamp(32px, 6vw, 72px); }
.sheet {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  background: var(--sheet);
  border-radius: 6px;
  box-shadow: 0 2px 0 rgba(27, 27, 47, .06), 0 26px 50px -24px rgba(110, 80, 0, .55);
}
.pin {
  position: absolute; left: 50%; top: -11px; width: 22px; height: 22px; margin-left: -11px;
  border-radius: 50%; background: var(--plecak); border: 3px solid var(--ink);
  box-shadow: 0 6px 6px -2px rgba(27, 27, 47, .35);
}

.sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad);
  border-bottom: 3px double var(--ink);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.head-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); font-weight: 600; font-size: .98rem; }
.head-nav a { text-decoration: none; }
.head-nav a:hover { text-decoration: underline; }
.head-login { padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; }
.head-login:hover { background: var(--ink); color: #fff; text-decoration: none !important; }

/* Otwarcie */
.opening { position: relative; display: flex; flex-direction: column; padding: clamp(26px, 3.6vw, 44px) var(--pad) clamp(40px, 6vw, 64px); }
.peek { position: absolute; z-index: -1; right: clamp(10px, 4vw, 48px); bottom: calc(100% - 6px); width: clamp(80px, 10vw, 140px); }
.opening h1 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); max-width: 17ch; font-stretch: 88%; }
.lead { margin-top: 14px; max-width: 54ch; font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-soft); }

.week { position: relative; z-index: 0; background: var(--sheet); margin: clamp(24px, 3vw, 32px) 0 0; border: 2px solid var(--ink); border-radius: 4px; }
.week-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 16px; background: var(--sheet); border-bottom: 2px solid var(--ink); }
.week-name { font-family: var(--hand); font-weight: 700; font-size: 1.15rem; }
.week-note { margin-right: clamp(96px, 12vw, 170px); font-size: .82rem; font-weight: 600; color: var(--ink-soft); padding: 2px 10px; border: 1.5px solid var(--rule); border-radius: 999px; }

.grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.grid th, .grid td { border: 1.5px solid var(--rule); }
.grid tr > :first-child { border-left: 0; }
.grid tr > :last-child { border-right: 0; }
.grid tbody tr:last-child > * { border-bottom: 0; }
.grid thead th { font-weight: 700; font-size: .9rem; padding: 8px 0; text-align: center; border-top: 0; font-variant-numeric: tabular-nums; }
.grid thead th.today { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid .corner { width: 34%; border-top: 0; }
.grid tbody th { text-align: left; font-family: var(--hand); font-weight: 600; font-size: clamp(.98rem, 1.4vw, 1.1rem); line-height: 1.25; padding: 8px 16px; }
.grid tbody th::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 10px; border-radius: 3px; background: var(--c); border: 2px solid var(--ink); vertical-align: -1px; }
.grid td { position: relative; height: clamp(44px, 4.4vw, 52px); padding: 0; }
.grid td.today { background: var(--door-pale); }
.grid td.off { background: repeating-linear-gradient(-45deg, transparent 0 7px, var(--rule) 7px 8.5px); }
.r-plecak { --c: var(--plecak); }
.r-zeby { --c: var(--zeby); }
.r-naczynia { --c: var(--naczynia); }

.grid td.done::before, .wait::before {
  content: ""; position: absolute; inset: 7px; border-radius: 8px;
  background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 13.2c1.6 1.1 3.3 2.6 4.8 4.3 2.4-4.3 5.5-8.1 9.8-11.4' fill='none' stroke='%231B1B2F' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / min(60%, 26px) no-repeat;
}
.wait {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; margin: 0;
  background: transparent; cursor: pointer; font: inherit; color: inherit;
}
.wait::before { clip-path: circle(0 at 50% 50%); transition: clip-path .5s var(--ease); }
.wait::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; background: var(--c); border: 2.5px solid var(--ink);
  box-shadow: 0 0 0 0 rgba(61, 180, 242, .55); animation: ask 1.8s var(--ease) 1s 3;
}
.wait:hover::after { transform: scale(1.2); }
.wait:focus-visible { outline-offset: -4px; }
.is-done .wait { cursor: default; }
.is-done .wait::before { clip-path: circle(75% at 50% 50%); }
.is-done .wait::after { opacity: 0; animation: none; transition: opacity .2s; }
@keyframes ask { 0% { box-shadow: 0 0 0 0 rgba(61, 180, 242, .6); } 70%, 100% { box-shadow: 0 0 0 14px rgba(61, 180, 242, 0); } }

.goal { display: grid; gap: 8px; padding: 12px 16px; border-top: 2px solid var(--ink); }
.goal-text { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 700; }
.goal-points { font-variant-numeric: tabular-nums; }
.goal-bar { height: 18px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1.5px), var(--rule) calc(10% - 1.5px) 10%); }
.goal-bar span { display: block; height: 100%; width: 53.33%; background: var(--gold); border-right: 2px solid var(--ink); transition: width .8s var(--ease) .15s; }
.is-done .goal-bar span { width: 60%; }

.talk { display: flex; align-items: flex-end; gap: 14px; padding: 2px 16px 12px; }
.talk-jez { flex: 0 0 auto; width: clamp(78px, 9vw, 104px); }
.talk-jez .pose-done { display: none; }
.is-done .talk-jez .pose-wait { display: none; }
.is-done .talk-jez .pose-done { display: block; animation: hop .6s var(--ease); }
@keyframes hop { 0% { transform: translateY(10px) scale(.94); } 60% { transform: translateY(-6px) scale(1.03); } 100% { transform: none; } }
.bubble {
  position: relative; margin-bottom: 18px; padding: 10px 14px; max-width: 46ch;
  font-family: var(--hand); font-weight: 600; font-size: 1rem; line-height: 1.4;
  border: 2px solid var(--ink); border-radius: 16px; background: #fff;
}
.bubble::before { content: ""; position: absolute; left: -10px; bottom: 14px; width: 16px; height: 16px; background: #fff;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) skew(8deg, 8deg); }

.start { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: clamp(18px, 2.4vw, 26px); }
.play {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px 16px 20px;
  background: var(--ink); color: #fff; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 1.1rem;
  box-shadow: 0 10px 18px -10px rgba(27, 27, 47, .6); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.play:hover { transform: translateY(-2px); box-shadow: 0 16px 24px -12px rgba(27, 27, 47, .6); }
.play:active { transform: translateY(0); }
.start-alt { font-weight: 600; }
.start-small { flex-basis: 100%; font-size: .92rem; color: var(--ink-soft); }

/* Sekcje planu */
.sheet > section:not(.opening) { padding: clamp(44px, 7vw, 88px) var(--pad); border-top: 2px solid var(--ink); }
.sheet h2 { font-size: clamp(1.85rem, 3.8vw, 2.9rem); max-width: 22ch; }
.sheet h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); letter-spacing: -0.015em; }

.periods { list-style: none; margin: clamp(24px, 4vw, 40px) 0 0; padding: 0; }
.periods li { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 0 clamp(14px, 2.4vw, 28px); padding: 22px 0; border-top: 1.5px solid var(--rule); }
.periods li:last-child { border-bottom: 1.5px solid var(--rule); }
.period { width: 58px; display: grid; justify-items: center; padding: 6px 0 5px; border: 2px solid var(--ink); border-radius: 8px; font-size: .72rem; font-weight: 600; color: var(--ink-soft); line-height: 1; }
.period b { font-size: 1.55rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 3px; }
.periods p { margin-top: 6px; max-width: 62ch; color: var(--ink-soft); }

.sheet > section.recess { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 0 clamp(14px, 2.4vw, 28px); background: var(--door-pale); }
.sheet > section.recess { border-top: 2px dashed var(--ink); border-bottom: 2px dashed var(--ink); }
.sheet > section.recess + section { border-top: 0; }
.recess-label { font-family: var(--hand); font-weight: 700; font-size: 1.1rem; color: var(--ink-soft); padding-top: 6px; }
.recess p, .trial p { margin-top: 14px; max-width: 60ch; }
.recess-body { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.recess-body .igielka { flex: 0 0 auto; width: clamp(120px, 16vw, 190px); }

.hedgehog-lead { margin-top: 16px; max-width: 64ch; color: var(--ink-soft); }
.stages { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0 0 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(8px, 3vw, 40px); border-bottom: 3px solid var(--ink); }
.stages li { flex: 1 1 0; display: flex; flex-direction: column; align-items: flex-start; }
.stages .igielka { width: 100%; height: auto; }
.stages li:nth-child(1) .igielka { width: 66%; }
.stages li:nth-child(2) .igielka { width: 82%; }
.stages h3 { margin-top: 8px; }
.stages p { font-size: .95rem; color: var(--ink-soft); line-height: 1.4; }

.legend-lead { margin-top: 10px; color: var(--ink-soft); }
.extra { width: 100%; margin-top: clamp(20px, 3vw, 32px); border-collapse: collapse; border: 2px solid var(--ink); }
.extra th, .extra td { border: 1.5px solid var(--rule); padding: 16px 18px; vertical-align: top; text-align: left; }
.extra tr:first-child > * { border-top: 0; }
.extra tr:last-child > * { border-bottom: 0; }
.extra th { width: 30%; font-weight: 700; font-size: 1.08rem; line-height: 1.3; border-left: 0; }
.extra td { color: var(--ink-soft); border-right: 0; }
.note-lines { list-style: none; margin: 20px 0 0; padding: 0; max-width: 70ch; }
.note-lines li { padding: 12px 0; border-bottom: 1.5px dashed var(--rule); }
.notes-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-weight: 600; }

.iphone > p { margin-top: 14px; max-width: 60ch; color: var(--ink-soft); }
.steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: step; max-width: 62ch; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 10px 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; }

.premium p { margin-top: 14px; max-width: 64ch; color: var(--ink-soft); }
.soon { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 12px; font-size: .9rem; letter-spacing: 0; border-radius: 999px; background: #fff; color: var(--ink); border: 2px solid var(--ink); }

.faq h2 { margin-bottom: clamp(16px, 3vw, 28px); }
.faq details { border-top: 1.5px solid var(--rule); max-width: 820px; }
.faq details:last-of-type { border-bottom: 1.5px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; border: 2px solid var(--ink); border-radius: 6px;
  background: linear-gradient(var(--ink), var(--ink)) center / 10px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 10px no-repeat; }
.faq details[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 10px 2px no-repeat; }
.faq details p { padding: 0 0 20px; max-width: 66ch; color: var(--ink-soft); }

.sheet > section.monday { position: relative; background: var(--ink); color: #fff; border-radius: 0 0 0 0; overflow: hidden; }
.monday h2 { color: #fff; max-width: 14ch; font-size: clamp(2.1rem, 5vw, 3.8rem); }
.monday p { margin-top: 14px; max-width: 44ch; color: #D9DBEA; }
.monday-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.monday .play { background: var(--door); color: var(--ink); }
.monday .web { color: #fff; font-weight: 600; text-decoration-color: var(--door); }
.monday-jez { position: absolute; right: clamp(-10px, 4vw, 80px); bottom: clamp(-18px, -1vw, -6px); width: clamp(150px, 24vw, 300px); }

.sheet-foot { padding: 28px var(--pad) 32px; font-size: .92rem; color: var(--ink-soft); border-top: 2px solid var(--ink); }
.sheet-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; font-weight: 600; color: var(--ink); }
.sheet-foot a { text-decoration: none; }
.sheet-foot a:hover { text-decoration: underline; }

/* Telefon */
@media (max-width: 760px) {
  .head-nav a:not(.head-login) { display: none; }
  .monday-jez { position: static; width: 140px; margin: 0 0 8px auto; }
}
@media (max-width: 560px) {
  .opening { padding-top: 22px; }
  .opening h1 { order: 1; font-size: 2.05rem; }
  .start { order: 2; gap: 8px 16px; margin-top: 16px; }
  .week { order: 3; margin-top: 40px; }
  .lead { order: 4; margin-top: 18px; }
  .start-small { font-size: .85rem; margin-top: -4px; }
  .start-alt { font-size: .95rem; }
  .week-note { margin-right: 84px; }
  .peek { width: 78px; right: 8px; }
  .extra, .extra tbody, .extra tr, .extra th, .extra td { display: block; width: auto; }
  .extra th { border: 0; padding: 14px 14px 2px; }
  .extra td { border: 0; border-bottom: 1.5px solid var(--rule); padding: 2px 14px 14px; }
  .extra tr:last-child td { border-bottom: 0; }
  .sheet > section.recess { grid-template-columns: 70px minmax(0, 1fr); gap: 0 12px; }
  .recess-label { font-size: .95rem; }
  .grid, .grid thead, .grid tbody { display: block; }
  .grid tr { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .grid .corner { display: none; }
  .grid tbody th { grid-column: 1 / -1; padding: 10px 12px 6px; border-left: 0; border-right: 0; border-bottom: 0; }
  .grid td { height: 40px; }
  .grid tbody th { padding: 8px 12px 4px; }
  .week-cap { padding: 8px 12px; }
  .goal { padding: 10px 12px; }
  .grid tbody tr > td:nth-child(2) { border-left: 0; }
  .grid tr > :last-child { border-right: 0; }
  .grid tbody tr:last-child > td { border-bottom: 0; }
  .grid tbody tr:last-child > th { border-bottom: 0; }
  .grid td.done::before, .wait::before { inset: 5px; border-radius: 6px; background-size: 62%; }
  .talk { padding: 4px 12px 14px; gap: 10px; }
  .bubble { font-size: .95rem; }
  .play { padding: 14px 20px 14px 16px; font-size: 1.02rem; }
  .recess-body { flex-direction: column; align-items: flex-start; }
  .stages h3 { font-size: 1rem; }
  .stages p { font-size: .82rem; }
}

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