/* Wspólne style strony głównej PL i EN (paleta 1:1 z aplikacji) */
/* Paleta 1:1 z aplikacji (res/values/colors.xml, 5 tonów na płeć) */
:root {
  --boy-0:#002951; --boy-1:#23619B; --boy-2:#8DB3EE; --boy-3:#E5ECFA; --boy-4:#F7F9FF;
  --girl-0:#391845; --girl-1:#794786; --girl-2:#CA9FD9; --girl-3:#F2E8F5; --girl-4:#FDF7FD;
  --like:#F4B400; --love:#E0343E;
  --radius-l:28px; --radius-m:20px;
}
html[data-gender="girl"] { --ink:var(--girl-0); --primary:var(--girl-1); --normal:var(--girl-2); --surface:var(--girl-3); --bg:var(--girl-4);
                           --other-ink:var(--boy-0); --other:var(--boy-1); --other-normal:var(--boy-2); --other-surface:var(--boy-3); }
html[data-gender="boy"]  { --ink:var(--boy-0); --primary:var(--boy-1); --normal:var(--boy-2); --surface:var(--boy-3); --bg:var(--boy-4);
                           --other-ink:var(--girl-0); --other:var(--girl-1); --other-normal:var(--girl-2); --other-surface:var(--girl-3); }

* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--ink); font:17px/1.6 "Nunito", system-ui, sans-serif;
       transition:background-color .5s, color .5s; overflow-x:hidden; }
img { max-width:100%; height:auto; display:block; }
a { color:var(--primary); }
.wrap { max-width:1200px; margin:0 auto; padding:0 16px; }

/* Pasek górny */
.top { position:sticky; top:0; z-index:10; background:color-mix(in srgb, var(--bg) 88%, transparent);
       backdrop-filter:blur(10px); transition:background-color .5s; }
.top .wrap { display:flex; align-items:center; gap:12px; height:68px; }
.brand { display:flex; align-items:center; gap:10px; font-weight:900; font-size:1.15rem; text-decoration:none; color:var(--ink); margin-right:auto; }
.brand img { width:36px; height:36px; border-radius:10px; }
.nav a { text-decoration:none; font-weight:700; color:var(--primary); padding:8px 12px; border-radius:999px; }
.nav a:hover { background:var(--surface); }
.gender { width:48px; height:48px; border-radius:50%; border:0; cursor:pointer; background:var(--normal); color:var(--ink);
          display:grid; place-items:center; transition:background-color .5s, transform .2s; flex:none; }
.gender:hover { transform:scale(1.06); }
.gender svg { width:26px; height:26px; }
.gender .male { display:none; }
html[data-gender="boy"] .gender .male { display:block; }
html[data-gender="boy"] .gender .female { display:none; }
@media (max-width:720px) { .nav { display:none; } }

/* Hero */
.hero { position:relative; padding:40px 0 72px; }
.hero .wrap { display:grid; grid-template-columns:1.05fr 1fr; gap:40px; align-items:center; position:relative; z-index:1; }
.hero-logo { width:min(210px, 52%); margin:0 0 4px -8px; }
h1 { font-size:clamp(2rem, 4.4vw, 3.2rem); line-height:1.12; font-weight:900; margin:0 0 16px; letter-spacing:-.01em; }
h1 em { font-style:normal; color:var(--primary); transition:color .5s; }
.lead { font-size:1.15rem; margin:0 0 28px; max-width:34em; }
.formerly { margin:-12px 0 24px; font-size:.95rem; opacity:.8; }
.cta { display:flex; flex-wrap:wrap; align-items:center; gap:16px 22px; }
.play img { height:64px; width:auto; }
.stats { display:flex; gap:10px; flex-wrap:wrap; margin-top:28px; padding:0; list-style:none; }
.stats li { background:var(--surface); border-radius:999px; padding:8px 16px; font-weight:700; font-size:.95rem; transition:background-color .5s; }
.stats b { color:var(--primary); font-weight:900; }

.phones { position:relative; height:740px; }
.phone { position:absolute; width:330px; border-radius:36px; padding:9px; background:#111; box-shadow:0 30px 60px -20px rgba(20,10,40,.35); }
.phone img { border-radius:28px; aspect-ratio:1/2; object-fit:cover; width:100%; }
.phones .p1 { left:4%; top:0; transform:rotate(-5deg); z-index:2; }
.phones .p2 { right:-2%; top:90px; transform:rotate(6deg); }
.chip { position:absolute; z-index:3; background:#fff; border-radius:999px; padding:8px 16px 8px 10px; font-weight:800;
        box-shadow:0 10px 24px -10px rgba(20,10,40,.35); display:flex; gap:8px; align-items:center; font-size:1rem; }
.chip svg { width:22px; height:22px; }
.chip.c1 { left:-2%; top:62%; color:var(--girl-0); }
.chip.c2 { right:0; top:6%; color:var(--boy-0); }

/* Chmurki jak na ekranie startowym */
.clouds { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.cloud { position:absolute; fill:var(--normal); opacity:.55; transition:fill .5s; }

/* Sekcje funkcji */
section { scroll-margin-top:76px; }
.section-head { text-align:center; max-width:640px; margin:0 auto 40px; }
.section-head h2 { font-size:clamp(1.7rem, 3.4vw, 2.4rem); line-height:1.15; font-weight:900; margin:0 0 10px; }
.section-head p { margin:0; font-size:1.1rem; }
.features { padding:24px 0 40px; }
.feature { display:grid; grid-template-columns:1.15fr 1fr; gap:48px; align-items:center; margin:0 0 72px; }
.feature:nth-child(even) .shot { order:2; }
.shot { display:flex; justify-content:center; align-items:flex-start; gap:20px; position:relative; }
.shot::before { content:""; position:absolute; inset:12% 4% 6%; background:var(--surface); border-radius:48px; z-index:-1; transition:background-color .5s; }
.shot .phone { position:relative; width:340px; }
.shot.two .phone { width:290px; }
.shot .phone + .phone { margin-top:56px; }
.card { background:var(--surface); border-radius:var(--radius-l); padding:28px; transition:background-color .5s; }
.card .icon { width:52px; height:52px; border-radius:50%; background:var(--normal); display:grid; place-items:center; margin-bottom:14px; transition:background-color .5s; }
.card .icon svg { width:26px; height:26px; stroke:var(--ink); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.card h3 { font-size:1.55rem; line-height:1.2; font-weight:900; margin:0 0 10px; }
.card p { margin:0 0 12px; }
.card ul { margin:0; padding:0; list-style:none; }
.card li { padding:8px 0 8px 30px; position:relative; border-top:1px solid var(--normal); }
.card li:first-child { border-top:0; }
.card li::before { content:""; position:absolute; left:4px; top:17px; width:12px; height:12px; border-radius:50%; background:var(--primary); transition:background-color .5s; }
.hint { font-size:.92rem; opacity:.8; margin-top:12px !important; }
.swap { border:0; background:var(--primary); color:var(--bg); font:inherit; font-weight:800; padding:8px 16px; border-radius:999px; cursor:pointer; margin-top:14px; transition:background-color .5s; }
.icons-inline { display:inline-flex; gap:6px; vertical-align:-4px; }
.icons-inline svg { width:20px; height:20px; }

/* Galeria */
.gallery { padding:24px 0 56px; }
.strip { display:flex; gap:20px; overflow-x:auto; scroll-snap-type:x mandatory; padding:8px 16px 24px; margin:0 auto; max-width:1120px;
         scrollbar-color:var(--normal) transparent; }
.strip figure { margin:0; flex:none; width:280px; scroll-snap-align:center; }
.strip .phone { position:relative; width:100%; padding:7px; border-radius:30px; }
.strip .phone img { border-radius:24px; }
.strip figcaption { text-align:center; font-weight:700; font-size:.95rem; margin-top:10px; }

/* Końcowe CTA */
.final { padding:16px 0 72px; }
.final .box { background:var(--primary); color:var(--bg); border-radius:36px; padding:44px 28px; text-align:center; transition:background-color .5s, color .5s; position:relative; overflow:hidden; }
.final h2 { font-size:clamp(1.6rem, 3.2vw, 2.3rem); font-weight:900; margin:0 0 8px; line-height:1.15; }
.final p { margin:0 0 24px; font-size:1.1rem; }
.final .play img { margin:0 auto; }

footer { padding:0 0 40px; text-align:center; font-size:.95rem; }
footer a { color:inherit; font-weight:700; }
footer .sep { margin:0 8px; opacity:.5; }

@media (max-width:900px) {
  .hero .wrap { grid-template-columns:1fr; text-align:center; }
  .hero-logo { margin:0 auto 8px; }
  .lead { margin-left:auto; margin-right:auto; }
  .cta, .stats { justify-content:center; }
  .phones { height:600px; max-width:520px; width:100%; margin:0 auto; }
  .phones .phone { width:270px; }
  .feature { grid-template-columns:1fr; gap:28px; margin-bottom:56px; }
  .feature:nth-child(even) .shot { order:0; }
}
@media (max-width:480px) {
  body { font-size:16px; }
  .phones { height:118vw; }
  .phones .phone { width:56vw; border-radius:28px; padding:7px; }
  .phones .phone img { border-radius:22px; }
  .phones .p1 { left:0; } .phones .p2 { right:0; }
  .chip { font-size:.88rem; }
  .strip figure { width:68vw; }
  .shot.two .phone { width:45vw; }
  .shot .phone { width:min(320px, 80vw); padding:7px; border-radius:28px; }
  .shot .phone img { border-radius:22px; }
  .shot .phone + .phone { margin-top:40px; }
  .shot.two { gap:12px; }
  .card { padding:22px; }
  .play img { height:56px; }
}
@media (prefers-reduced-motion:reduce) { * { transition:none !important; } html { scroll-behavior:auto; } }

footer button.linkish { background:none; border:0; padding:0; font:inherit; font-weight:700; color:inherit; text-decoration:underline; cursor:pointer; }
.attribution { font-size:.85rem; opacity:.75; margin-top:8px; }

/* Przełącznik języka z flagami (bieżący język wyróżniony) */
.langsw { display:flex; align-items:center; gap:2px; padding:4px; border-radius:999px; flex:none; }
.langsw a { display:flex; align-items:center; gap:7px; padding:6px 12px 6px 7px; border-radius:999px; text-decoration:none;
            font-weight:900; font-size:.92rem; line-height:1; }
.langsw .flag { width:22px; height:22px; border-radius:50%; overflow:hidden; flex:none; box-shadow:0 0 0 1px rgba(0,0,0,.18); display:block; }
.langsw .flag svg { width:100%; height:100%; display:block; }
.langsw { background:var(--surface); transition:background-color .5s; }
.langsw a { color:var(--ink); }
.langsw a:hover { background:var(--normal); }
.langsw a[aria-current] { background:var(--primary); color:var(--bg); }
@media (max-width:400px) { .brand span.name { display:none; } .langsw a { padding:6px 9px 6px 6px; gap:5px; } }
