/* Kolory z projektu aplikacji (mobile/lib/core/theme.dart); niebieski maskotki tylko na pasie słów i w stopce CTA. */
:root {
  --bg: #F3F1ED;
  --surface: #FDFCFA;
  --surface-alt: #F9F8F5;
  --border: #E8E5E0;
  --border-strong: #DEDBD5;
  --ink: #2B2721;
  --ink-muted: #6F6A62;
  --accent: #3A82B8;
  --accent-soft: #DCEAF4;
  --mascot: #2F6FE4;
  --success: #2E7A5C;
  --warm: #C97A2B;
  --danger: #B5584F;
  --card-shadow: 0 12px 30px -10px rgba(30, 25, 15, .18);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161512;
    --surface: #1F1E1A;
    --surface-alt: #1B1A17;
    --border: #2F2D28;
    --border-strong: #3B3933;
    --ink: #F1EFE9;
    --ink-muted: #ADA79D;
    --accent: #6FAEDD;
    --accent-soft: #1D3346;
    --mascot: #3F7CEB;
    --success: #5DBB92;
    --danger: #E08479;
    --card-shadow: 0 12px 30px -10px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #161512;
  --surface: #1F1E1A;
  --surface-alt: #1B1A17;
  --border: #2F2D28;
  --border-strong: #3B3933;
  --ink: #F1EFE9;
  --ink-muted: #ADA79D;
  --accent: #6FAEDD;
  --accent-soft: #1D3346;
  --mascot: #3F7CEB;
  --success: #5DBB92;
  --danger: #E08479;
  --card-shadow: 0 12px 30px -10px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 17px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Pisma, których Manrope nie ma - systemowy font wygląda lepiej niż zastępczy. */
html[lang="ar"] body, html[lang="fa"] body, html[lang="he"] body,
html[lang="hi"] body, html[lang="th"] body, html[lang="ja"] body,
html[lang="ko"] body, html[lang="zh"] body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* Koreański dzieli się na wiersze między wyrazami, a nie w środku. */
html[lang="ko"] body { word-break: keep-all; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); max-width: 18ch; }
h3 { font-size: 1.1rem; letter-spacing: -.01em; }
p { margin: 0; }
.sub { color: var(--ink-muted); font-size: 1.12rem; max-width: 34rem; margin-top: 16px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Nawigacja */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; text-decoration: none; }
.brand img { border-radius: 9px; }
.nav-links { display: none; gap: 26px; }
.nav-links a { color: var(--ink-muted); font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* Wybór języka z flagami */
.lang { position: relative; margin-inline-start: auto; }
.lang-btn {
  display: flex; align-items: center; gap: 9px;
  font: inherit; font-size: .92rem; font-weight: 700; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 7px 12px 7px 9px; cursor: pointer;
}
.lang-btn:hover { border-color: var(--ink-muted); }
.lang-btn:focus-visible, .lang-menu a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-btn .chev { color: var(--ink-muted); transition: transform .2s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); flex: none; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 40;
  width: min(440px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow-y: auto;
  margin: 0; padding: 8px; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 24px 50px -16px rgba(30, 25, 15, .3);
  animation: menu-in .16s ease-out;
}
.lang-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
.lang-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px; text-decoration: none;
  font-size: .93rem; font-weight: 600; outline: none;
}
.lang-menu a:hover { background: var(--surface-alt); box-shadow: inset 0 0 0 1px var(--border); }
.lang-menu a[aria-current] { color: var(--accent); font-weight: 800; }
.lang-menu a[aria-current]::after {
  content: ""; margin-inline-start: auto; width: 14px; height: 14px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%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 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lang-menu a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .lang-menu { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 940px) {
  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 40px; }
}
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); letter-spacing: -.035em; line-height: 1.02; max-width: 12ch; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-muted); max-width: 32rem; margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
.store {
  display: inline-flex; align-items: center; gap: 11px; min-height: 54px; padding: 0 20px 0 16px;
  background: var(--ink); color: var(--bg); border-radius: 14px; text-decoration: none;
}
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: .7rem; font-weight: 600; opacity: .75; }
.store b { font-size: 1.1rem; }
.text-link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--border-strong); }
.text-link:hover { text-decoration-color: var(--ink); }
.fine { margin-top: 20px; color: var(--ink-muted); font-size: .92rem; }

.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; padding-bottom: 10px; }
.stack { position: relative; width: min(290px, 74vw); aspect-ratio: 7 / 8; }
.paper, .face {
  position: absolute; inset: 0; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}
.paper { display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; color: var(--ink-muted); }
.paper span { opacity: .35; }
.p3 { transform: rotate(-9deg) translate(-26px, 10px); }
.p2 { transform: rotate(5deg) translate(20px, -6px); }
.flash { all: unset; position: absolute; inset: 0; cursor: pointer; perspective: 1200px; }
.flash:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 24px; }
.face {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; text-align: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.back { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotateY(180deg); }
.flash.flipped .front { transform: rotateY(-180deg); }
.flash.flipped .back { transform: rotateY(0); }
.tag { position: absolute; top: 22px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; opacity: .6; }
.word { font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 800; line-height: 1.15; word-break: break-word; }
.hint { position: absolute; bottom: 20px; font-size: .78rem; font-weight: 600; color: var(--ink-muted); }
.grades {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 26px; width: min(300px, 86vw);
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.grades.show { opacity: 1; transform: none; pointer-events: auto; }
.grades button {
  font: inherit; font-size: .76rem; font-weight: 800; padding: 10px 2px; border-radius: 12px; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.grades .hard { border-color: var(--danger); color: var(--danger); }
.grades .easy { background: var(--accent); border-color: var(--accent); color: #fff; }
/* Flippy zagląda zza stosu - zwykły ruch całej postaci, bez przeróbek grafiki. */
.mascot {
  position: absolute; width: min(150px, 34vw); height: auto;
  inset-inline-start: max(0px, calc(50% - 250px)); bottom: 40px;
  animation: bob 4.5s ease-in-out infinite; transform-origin: 50% 90%;
}
[dir="rtl"] .mascot { transform: scaleX(-1); animation-name: bob-rtl; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes bob-rtl { 0%, 100% { transform: scaleX(-1); } 50% { transform: scaleX(-1) translateY(-10px) rotate(2deg); } }

/* Pas słów */
.words { background: var(--mascot); color: #fff; padding: 64px 0 56px; overflow: hidden; }
.words h2 { max-width: 22ch; margin-bottom: 36px; }
.ticker { overflow: hidden; padding: 6px 0; }
.ticker-track { display: flex; gap: 14px; width: max-content; animation: slide 70s linear infinite; }
.ticker.reverse .ticker-track { animation-direction: reverse; animation-duration: 85s; }
.chip {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px;
  border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 800; white-space: nowrap;
}
.chip .flag { width: 26px; height: 19px; box-shadow: none; }
@keyframes slide { to { transform: translateX(-50%); } }
[dir="rtl"] .ticker-track { animation-name: slide-rtl; }
@keyframes slide-rtl { to { transform: translateX(50%); } }

/* Sekcje */
.section { padding: 80px 0; }
@media (min-width: 940px) { .section { padding: 120px 0; } }

.how-head { display: grid; gap: 8px; }
@media (min-width: 940px) { .how-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; } .how-head .sub { margin: 0; } }
.curve { margin: 48px 0 0; padding: 0; }
.curve svg { width: 100%; height: auto; overflow: visible; }
.curve .base { stroke: var(--border-strong); stroke-width: 2; }
.curve .without { fill: none; stroke: var(--danger); stroke-width: 2.5; stroke-dasharray: 6 7; opacity: .7; }
.curve .with { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; }
.curve .marks circle { fill: var(--bg); stroke: var(--accent); stroke-width: 3; opacity: 0; transition: opacity .4s; }
.curve .ticks text { fill: var(--ink-muted); font-size: 13px; font-weight: 700; text-anchor: middle; font-family: inherit; }
.curve.in .with { animation: draw 2.2s ease forwards; }
.curve.in .marks circle { opacity: 1; }
.curve.in .marks circle:nth-child(1) { transition-delay: .5s; }
.curve.in .marks circle:nth-child(2) { transition-delay: 1s; }
.curve.in .marks circle:nth-child(3) { transition-delay: 1.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.curve figcaption { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: .9rem; font-weight: 700; }
.key { display: inline-flex; align-items: center; gap: 8px; }
.key::before { content: ""; width: 22px; border-top: 4px solid var(--accent); border-radius: 2px; }
.key-without::before { border-top: 2.5px dashed var(--danger); }
.key-days { margin-inline-start: auto; color: var(--ink-muted); font-weight: 600; }

.steps { list-style: none; margin: 56px 0 0; padding: 32px 0 0; display: grid; gap: 32px; border-top: 1px solid var(--border-strong); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps b { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--accent); margin-bottom: 14px; }
.steps p { color: var(--ink-muted); margin-top: 8px; font-size: 1rem; }

/* Nowość nad tytułem w hero i etykieta nad tytułem sekcji kursu */
.news {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 5px 14px 5px 5px; border-radius: 999px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border-strong);
  font-size: .9rem; font-weight: 700;
}
.news:hover { border-color: var(--ink-muted); }
.news b, .eyebrow {
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
}
.eyebrow { display: inline-block; margin-bottom: 18px; }
/* Odstępy między literami rozrywają pisma łączone (arabskie, perskie, dewanagari, tajskie). */
html[lang="ar"] .news b, html[lang="fa"] .news b, html[lang="hi"] .news b, html[lang="th"] .news b,
html[lang="ar"] .eyebrow, html[lang="fa"] .eyebrow, html[lang="hi"] .eyebrow, html[lang="th"] .eyebrow { letter-spacing: 0; }

/* Kurs z Flippy */
.course-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
.course-steps li { display: flex; gap: 16px; align-items: flex-start; }
.course-steps b {
  width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800;
}
.course-steps p { color: var(--ink-muted); font-size: .98rem; margin-top: 4px; }
.course-section .fine { margin-top: 28px; font-weight: 700; color: var(--success); }

.course-art { position: relative; justify-self: center; width: 100%; max-width: 400px; padding-bottom: 120px; }
.course { display: grid; gap: 20px; }
.course-head { display: flex; align-items: center; gap: 14px; }
.course-flag { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--border); flex: none; }
.course-head b { display: block; font-size: 1.15rem; }
.course-head small { display: block; color: var(--ink-muted); font-weight: 600; font-size: .85rem; line-height: 1.35; }
.level-badge {
  margin-inline-start: auto; padding: 6px 12px; border-radius: 10px; flex: none;
  background: var(--accent-soft); color: var(--accent); font-weight: 800;
}
.levels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px 6px; }
.levels i { height: 7px; border-radius: 4px; background: var(--border); position: relative; overflow: hidden; }
.levels i::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 4px; background: var(--accent);
  width: 0; transition: width .5s ease;
}
.levels span { text-align: center; font-size: .78rem; font-weight: 700; color: var(--ink-muted); }
.levels .now { color: var(--accent); font-weight: 800; }
.course.in .levels i::after { width: calc(var(--p) * 100%); }
.course.in .levels i:nth-child(2)::after { transition-delay: .35s; }
.course.in .levels i:nth-child(3)::after { transition-delay: .7s; }
.course-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.course-stats div { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.course-stats b { display: block; font-size: 1.3rem; line-height: 1.2; }
.course-stats small { display: block; color: var(--ink-muted); font-weight: 600; font-size: .78rem; line-height: 1.3; }
.course-btn {
  display: block; text-align: center; padding: 14px; border-radius: 14px;
  background: var(--accent); color: #fff; font-weight: 800;
}
/* Mała karta lekcji wystaje spod kursu */
.mock.recall {
  position: absolute; bottom: 0; inset-inline-end: -18px; width: 240px; padding: 16px 18px;
  display: grid; gap: 4px; rotate: -2deg;
}
.recall small { color: var(--ink-muted); font-weight: 700; font-size: .78rem; }
.recall b { font-size: 1.25rem; }
.recall-input {
  display: flex; align-items: center; min-height: 42px; margin-top: 8px; padding: 0 12px; border-radius: 12px;
  border: 1.5px solid var(--accent); font-weight: 700;
}
.course-mascot { position: absolute; bottom: 4px; inset-inline-start: 6px; width: 92px; height: auto; animation: bob 4.5s ease-in-out infinite; transform-origin: 50% 90%; }
[dir="rtl"] .course-mascot { transform: scaleX(-1); animation-name: bob-rtl; }
@media (max-width: 520px) { .mock.recall { inset-inline-end: 0; } }

/* Funkcje: wiersze z makietami */
.features { background: var(--surface-alt); border-block: 1px solid var(--border); }
.row { display: grid; gap: 36px; align-items: center; }
.row + .row { margin-top: 96px; }
@media (min-width: 900px) {
  .row { grid-template-columns: 1fr 1fr; gap: 72px; }
  .row.flip .row-copy { order: 2; }
  .row + .row { margin-top: 140px; }
}
.mock {
  justify-self: center; width: 100%; max-width: 400px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  box-shadow: var(--card-shadow); padding: 22px;
}

.phone-lock { background: #1D2433; border-color: #1D2433; color: #fff; padding: 34px 18px 22px; border-radius: 32px; }
.lock-time { text-align: center; font-size: 3.4rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-bottom: 28px; opacity: .95; }
.lock-card { background: rgba(255, 255, 255, .1); border-radius: 20px; padding: 16px; display: grid; gap: 14px; }
.lock-head { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; opacity: .8; }
.lock-head img { border-radius: 5px; }
.lock-row { display: flex; align-items: center; gap: 12px; }
.lock-row small { display: block; font-size: .78rem; opacity: .7; font-weight: 600; }
.lock-row b { font-size: 1.35rem; }
.speaker, .mic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.speaker { background: #fff; color: #1D2433; }
.mic { background: #2E7A5C; color: #fff; }
.answer small { font-size: .9rem; opacity: .85; }
.wave { display: flex; align-items: center; gap: 4px; height: 34px; padding-inline-start: 50px; }
.wave i { flex: 1; max-width: 6px; height: 30%; border-radius: 3px; background: rgba(255, 255, 255, .7); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.6s; } .wave i:nth-child(4n) { animation-delay: -.85s; }
@keyframes wave { 50% { height: 100%; } }

.ai-input {
  display: flex; align-items: center; min-height: 50px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--accent); font-weight: 700; font-size: 1.02rem;
}
.caret { width: 2px; height: 20px; background: var(--accent); margin-inline-start: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-result { margin-top: 18px; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.ai-result.show { opacity: 1; transform: none; }
.ai-deck { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.ai-deck b { display: block; font-size: .98rem; }
.ai-deck small { color: var(--ink-muted); font-weight: 600; font-size: .82rem; }
.deck-ico { width: 40px; height: 40px; border-radius: 11px; background: #F7ECDC; position: relative; flex: none; }
.deck-ico::after { content: ""; position: absolute; inset: 13px; border-radius: 4px; background: #B07A2E; }
.ai-result ul { list-style: none; margin: 0; padding: 0; }
.ai-result li { padding: 11px 2px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: .95rem; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.ai-result li:last-child { border-bottom: 0; padding-bottom: 0; }
.ai-result li.in { opacity: 1; transform: none; }

.group { display: grid; gap: 18px; }
.group-head { display: flex; align-items: center; gap: 14px; }
.group-head b { display: block; font-size: 1.08rem; }
.group-head small { color: var(--ink-muted); font-weight: 700; letter-spacing: .06em; }
.group-ico { width: 46px; height: 46px; border-radius: 13px; background: #E4E2F4; position: relative; flex: none; }
.group-ico::after { content: ""; position: absolute; inset: 15px; border-radius: 4px; background: #5C56A8; transform: rotate(8deg); }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: .74rem; font-weight: 800;
  border: 3px solid var(--surface); margin-inline-start: -9px; color: #fff; background: #3A82B8;
}
.avatars span:first-child { margin-inline-start: 0; }
.avatars span:nth-child(2) { background: #2E7A5C; }
.avatars span:nth-child(3) { background: #C97A2B; }
.avatars span:nth-child(4) { background: #A85A55; }
.avatars .more { background: var(--surface-alt); color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--border); }
.bar-row { display: grid; gap: 7px; font-weight: 700; font-size: .9rem; }
.bar-row i { display: block; height: 7px; border-radius: 4px; background: var(--border); position: relative; overflow: hidden; }
.bar-row i::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p) * 100%); background: var(--accent); border-radius: 4px; }

.plain { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.plain li { position: relative; padding-inline-start: 22px; font-weight: 600; }
.plain li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(6deg); }

.more-list { margin-top: 140px; padding-top: 40px; border-top: 1px solid var(--border-strong); }
.more-list dl { display: grid; gap: 28px 48px; margin: 40px 0 0; }
@media (min-width: 640px) { .more-list dl { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .more-list dl { grid-template-columns: repeat(3, 1fr); } }
.more-list dt { font-weight: 800; font-size: 1.05rem; }
.more-list dd { margin: 6px 0 0; color: var(--ink-muted); font-size: .98rem; }

/* Sceny z Flippym - jak zdjęcia przypięte do tablicy */
.scenes-section { overflow: hidden; }
.scenes { margin-top: 48px; }
.scenes-track { display: flex; gap: 26px; width: max-content; padding: 14px 0 30px; animation: slide 80s linear infinite; }
.scenes:hover .scenes-track { animation-play-state: paused; }
.scenes img {
  width: 190px; height: auto; aspect-ratio: 219 / 276; object-fit: cover;
  padding: 8px 8px 30px; background: #fff; border-radius: 6px;
  box-shadow: 0 10px 24px -10px rgba(30, 25, 15, .3);
  transform: rotate(-2.5deg);
}
.scenes img:nth-child(2n) { transform: rotate(2deg) translateY(14px); }
.scenes img:nth-child(3n) { transform: rotate(-1deg) translateY(-6px); }
[dir="rtl"] .scenes-track { animation-name: slide-rtl; }

/* Plany */
.plans { display: grid; gap: 0; margin-top: 48px; border: 1px solid var(--border-strong); border-radius: 24px; overflow: hidden; background: var(--surface); }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { padding: 34px 32px 38px; }
.plan + .plan { border-top: 1px solid var(--border-strong); }
@media (min-width: 820px) { .plan + .plan { border-top: 0; border-inline-start: 1px solid var(--border-strong); } }
.plan h3 { font-size: 1.5rem; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.plan h3 small { font-size: .78rem; font-weight: 800; letter-spacing: 0; padding: 4px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.plan-sub { color: var(--ink-muted); margin-top: 8px; }
.premium { box-shadow: inset 0 4px 0 var(--accent); }

/* Końcowe wezwanie */
.final { padding: 0 0 88px; }
.final-inner { display: grid; gap: 32px; align-items: center; }
.final-copy {
  background: var(--mascot); color: #fff; border-radius: 28px; padding: 48px 32px;
}
.final h2 { max-width: 16ch; }
.final p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; max-width: 30rem; margin: 16px 0 28px; }
.store.light { background: #fff; color: #1B2A4A; }
.final-mascot { width: 100%; max-width: 280px; justify-self: center; border-radius: 22px; transform: rotate(3deg); box-shadow: var(--card-shadow); }
@media (min-width: 860px) {
  .final-inner { grid-template-columns: 1fr auto; }
  .final-copy { padding: 64px 56px; }
}

/* Stopka */
.footer { border-top: 1px solid var(--border); padding: 28px 0 40px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer nav a { color: var(--ink-muted); font-weight: 600; font-size: .92rem; text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
.footer small { margin-inline-start: auto; color: var(--ink-muted); }

/* Wjazd przy przewijaniu */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 520px) {
  .hero { padding-bottom: 48px; }
  .stack { width: min(240px, 64vw); }
  .mascot { width: 100px; bottom: 96px; }
  .footer small { margin-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .curve .with { stroke-dashoffset: 0; }
  .curve .marks circle { opacity: 1; }
  .ticker, .scenes { overflow-x: auto; }
}
