/* =========================================================================
   flow: strona
   The first flow landing, rebuilt on one system. Change a value in 1, not in a section.
   1. font & tokens   2. base & type   3. layout   4. sections
   5. hero   6. app screens in the panels   7. footer, banner, cookies (from imprv.ai)
   8. motion   9. responsive
   Breakpoints, as on imprv.ai: 961 (desktop) · 760 (phone). 1360 only switches the doodles off.
   ========================================================================= */

/* 1. font & tokens ---------------------------------------------------------- */
@font-face{font-family:Onest;src:url(../fonts/onest-latin.woff2) format("woff2");font-weight:100 900;font-display:swap;
  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:Onest;src:url(../fonts/onest-latin-ext.woff2) format("woff2");font-weight:100 900;font-display:swap;
  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{
  color-scheme:light;
  --font:Onest,-apple-system,system-ui,sans-serif;
  --ease:cubic-bezier(.32,.72,0,1);

  /* colour: ink, two greys, the flow violets */
  --ink:#16151a;
  --sub:#5f5e64;
  --bg:#ffffff;
  --fill:#f2f2f6;
  --fill2:#e5e5ea;
  --line:#e5e5ea;
  --acc:#6d5ec9;          /* the app's accent: app screens, the Android banner button, the phone row's dots */
  --deep:#33258e;         /* violet sections, footer */
  --brand:#a093ec;        /* "Dobre flow.", selection */
  --light:#ebe7fc;        /* the panels the screens sit on */
  --on-deep-sub:#cfc8f6;  /* secondary text on violet */
  --hero-bg:#05061a;
  --focus:#5446c2;

  /* type: six roles. Desktop values here; 960 and 760 below change only the size */
  --t-d1:700 64px/1.02 var(--font);    /* hero line */
  --t-d2:700 40px/1.08 var(--font);    /* section heading */
  --t-h3:600 22px/1.25 var(--font);    /* step, goal, question */
  --t-lead:400 20px/1.5 var(--font);   /* the hero sentence, the slogan */
  --t-body:400 17px/1.5 var(--font);   /* everything else */
  --t-small:400 15px/1.45 var(--font); /* levels, notes */

  /* space: one scale */
  --s1:8px; --s2:16px; --s3:24px; --s4:40px; --s5:64px; --s6:96px; --s7:128px;
  --sec-y:var(--s7);                  /* section top and bottom air */
  /* every distance is measured between letters, not line boxes: page text is trimmed to cap height and baseline (2) */

  /* shape: three radii */
  --r1:14px;   /* buttons, badges */
  --r2:24px;   /* cards */
  --r3:32px;   /* panels */

  /* one content width; on wide screens each side keeps a band for a doodle */
  --dd-side:24px; --dd-w:139px; --dd-gap:40px;
  --content:min(1040px,100vw - 2 * (var(--dd-side) + var(--dd-w) + var(--dd-gap)));
  --edge:calc((100vw - var(--content)) / 2);
  --gut:24px;
  --shadow:0 0 0 1px rgba(20,18,24,.04),0 2px 6px rgba(20,18,24,.05),0 24px 48px -18px rgba(20,18,24,.22);
}
@media (max-width:960px){:root{
  --t-d1:700 52px/1.02 var(--font); --t-d2:700 34px/1.08 var(--font); --t-h3:600 20px/1.25 var(--font);
  --sec-y:var(--s6);
}}
@media (max-width:760px){:root{
  --t-d1:700 46px/1.02 var(--font); --t-d2:700 32px/1.08 var(--font); --t-h3:600 18px/1.3 var(--font);
  --t-lead:400 18px/1.5 var(--font); --t-body:400 16px/1.55 var(--font);
}}
@media (max-width:360px){:root{--t-d1:700 38px/1.02 var(--font); --gut:20px}}

/* 2. base & type -------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;scrollbar-color:var(--brand) transparent}
/* cookies: our dialog (#ck); Cookiebot's dialog, icon and overlay hidden, its scroll lock undone */
#CybotCookiebotDialog,#CybotCookiebotDialogBodyUnderlay,#CookiebotWidget{display:none!important}
body[style*=overflow]{overflow:visible!important;overflow-x:hidden!important}
body{margin:0;background:var(--bg);color:var(--ink);font:var(--t-body);-webkit-font-smoothing:antialiased;overflow-x:hidden}
h1,h2,h3,p,ul,ol,figure{margin:0}
ul,ol{padding:0;list-style:none}
a{color:inherit;text-decoration:none}
img,svg{max-width:100%}
button{font:inherit;color:inherit}
h1,h2,h3,.faq summary > span{text-wrap:balance}
h1{font:var(--t-d1);letter-spacing:-.035em}
h2{font:var(--t-d2);letter-spacing:-.03em}
h3{font:var(--t-h3);letter-spacing:-.02em}
p{text-wrap:pretty}
/* the page's text sits on cap height and baseline, so a gap from the scale is the gap you see (app screens keep their own) */
:is(main,.statement) :is(h1,h2,h3,p,.lv,.soon-l b,.soon-l span,.faq summary > span):not(.vc *,.tc *,.banner-mark){text-box:trim-both cap alphabetic}
.lead{font:var(--t-lead);color:var(--sub);max-width:30em}
.body{color:var(--sub);max-width:28em}
::selection{background:var(--brand);color:var(--ink)}
:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:6px}
.hero :focus-visible,.deep :focus-visible,.foot :focus-visible,.sd-home:focus-visible{outline-color:#fff}
.mouse :focus-visible{outline:none}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:fixed;left:var(--s2);top:var(--s2);z-index:40;padding:12px 18px;border-radius:var(--r1);background:var(--bg);font:var(--t-small);font-weight:600;box-shadow:var(--shadow);transform:translateY(-200%)}
.skip:focus{transform:none}
.skip:not(:focus){box-shadow:none}   /* its shadow would show at the top edge while it waits off screen */
main:focus{outline:none}

/* 3. layout ------------------------------------------------------------------ */
.w{max-width:calc(var(--content) + 2 * var(--gut));margin:0 auto;padding:0 var(--gut)}
section{position:relative;padding:var(--sec-y) 0;overflow:clip}
#pytania{overflow:clip visible}   /* the FAQ doodle bends below the section, into the space above the banner; layout unchanged */
section > .w{position:relative;z-index:1}
.sec-h{display:grid;gap:var(--s3);max-width:640px;margin-bottom:var(--s4)}
.deep{background:var(--deep);color:#fff}
.deep .body{color:var(--on-deep-sub)}

.nav{position:absolute;top:0;left:0;right:0;z-index:5;color:#fff}
.nav .w{height:72px;display:flex;align-items:center}
.logo{display:block}
.logo svg{display:block;width:100%;height:auto}
.nav .logo{width:84px;visibility:hidden}   /* the fixed, scroll-driven copy (.sd) stands in for it */

/* a feature: text beside its panel; .flip puts the text on the right */
.feat .w{display:grid;grid-template-columns:1fr 1fr;gap:var(--s5);align-items:center}
.feat .w > *{min-width:0}
.feat .txt{display:grid;gap:var(--s3)}
.feat.flip .txt{order:2}

/* doodles: one per section on wide screens, in the band --content leaves free */
.dd{position:absolute;z-index:0;top:var(--s4);width:var(--dd-w);height:520px;pointer-events:none;fill:none;overflow:visible}
.dd path{stroke:var(--deep);stroke-width:56px;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.deep .dd path{stroke:#fff}
.dd.l{left:calc(var(--edge) - var(--dd-gap) - var(--dd-w))}
.dd.r{right:calc(var(--edge) - var(--dd-gap) - var(--dd-w));transform:scaleX(-1)}

/* 4. sections ----------------------------------------------------------------- */

/* store badges: sized like the official ones. The face lifts on hover, the link stays put */
.stores{display:flex;gap:var(--s2);flex-wrap:wrap}
/* a store badge shows only once it has its real link; with no live badge the whole group (and its footer column) is gone */
.store[href="#"]{display:none}
.stores:not(:has(.store:not([href="#"]))),.ft-cols > div:has(> .ft-stores):not(:has(.store:not([href="#"]))){display:none}
.store{display:inline-block;border-radius:var(--r1)}
.os-ios .store.android,.os-android .store.ios{display:none}
.store .face{display:flex;align-items:center;gap:10px;height:52px;padding:0 18px 0 14px;border-radius:var(--r1);background:var(--ink);color:#fff;transition:transform .3s var(--ease),box-shadow .3s var(--ease)}
.store svg{width:24px;height:24px;fill:currentColor}
.store .face > span{display:flex;flex-direction:column;font:500 11px/1.1 var(--font)}
.store b{font-size:17px;font-weight:600;letter-spacing:-.01em;white-space:nowrap}
@media (hover:hover){.store:hover .face{transform:translateY(-2px);box-shadow:0 12px 24px -12px rgba(20,18,24,.35)}}
.store:active .face{transform:none;box-shadow:none}
.hero .store .face,.foot .store .face{background:#fff;color:var(--ink)}

/* steps: white cards on violet (desktop), an open list (≤960) */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--s3)}
.step{display:grid;align-content:start;gap:var(--s3);padding:var(--s3);border-radius:var(--r2);background:#fff;color:var(--ink)}
.step .n{display:grid;place-items:center;width:32px;height:32px;margin-bottom:var(--s3);border-radius:50%;background:var(--deep);color:#fff;font:var(--t-small);font-weight:600}
.step p{color:var(--sub)}

/* goal cover: a photo in 4×4 squares; lit = done, dimmed = still ahead */
.cv{position:relative;flex:none;overflow:hidden;background:var(--fill2) center/cover no-repeat}
.cv .dim{position:absolute;inset:0;width:100%;height:100%}
.cv .dim > rect{fill:rgb(12,10,24);fill-opacity:.62}
.cv .dim mask rect{fill:#fff;shape-rendering:crispEdges;transition:fill-opacity .5s var(--ease)}
.cv .dim.instant mask rect{transition:none}

/* goals */
.goals{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--s3)}
.goal{display:grid;gap:var(--s1);align-content:start}
.goal .cv{width:100%;aspect-ratio:1;margin-bottom:var(--s3);border-radius:20%}
.goal .lv{font:var(--t-small);color:var(--sub)}

/* faq */
.faq{max-width:760px}
.faq details{padding:var(--s3) 0;border-top:1px solid var(--line)}
.faq details:last-child{border-bottom:1px solid var(--line)}
.faq summary{display:flex;justify-content:space-between;align-items:center;gap:var(--s2);font:var(--t-lead);list-style:none;cursor:pointer}   /* question = lead, answer = body: only the section title is bold */
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";flex:none;font-weight:400;font-size:24px;line-height:1;color:var(--sub);transition:transform .2s var(--ease)}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{max-width:36em;margin-top:var(--s3);color:var(--sub)}

/* coming soon: two boxes on the violet, words only. White: the next goals; lavender: what is coming for the crew */
.soon{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s3);align-items:stretch}   /* each box as tall as its content: the same padding all round */
.soon-b{display:grid;align-content:start;gap:var(--s3);padding:var(--s4);border-radius:var(--r3);background:#fff;color:var(--ink)}
.soon-b.lav{background:var(--light)}
.soon-c{display:flex;flex-direction:column;justify-content:space-between;gap:var(--s3)}   /* the question's baseline sits on the white box's bottom edge */
.soon-q{color:var(--on-deep-sub);text-box:trim-both cap alphabetic}   /* body, like every other line of text under a heading */
.soon-q a{color:#fff;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
@media (hover:hover){.soon-q a:hover{text-decoration-thickness:2px}}
.soon-l li{display:flex;align-items:center;gap:var(--s2);padding:var(--s2) 0;border-top:1px solid var(--line)}
.soon-l li:last-child{padding-bottom:0}
.soon-l li:last-child > div{min-height:0}   /* nothing under the last row to line up with: it keeps its own height */
.soon > .soon-b{align-self:start}   /* the white box stays as tall as its rows */
.soon-b.lav .soon-l li{border-top-color:color-mix(in srgb,var(--deep) 12%,transparent)}
.soon-l li > div{display:grid;gap:var(--s1);align-content:center;min-height:var(--s4)}   /* every row as tall as the icon row, so the lines of both boxes meet */   /* row = title + one line under it, the same pair as a goal in Cele */
.soon-l b{font-weight:600}
.soon-l span{font:var(--t-small);color:var(--sub)}
.soon-cv{flex:none;width:56px;height:56px;border-radius:12px;background:var(--fill2) center/cover no-repeat}   /* the app's goal row: cover, title, subtitle */
.soon-i{display:grid;place-items:center;flex:none;width:var(--s4);height:var(--s4);border-radius:50%;background:#fff;color:var(--deep)}
.soon-i svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}



/* Android: a small banner pointing to Google Play (iOS has its own Smart App Banner) */
.ab{display:none}
.has-ab .ab{display:flex;align-items:center;gap:12px;height:68px;padding:0 14px 0 8px;background:var(--fill);color:var(--ink);border-bottom:1px solid rgba(20,18,24,.08)}
.has-ab .nav{top:68px}
.ab-x{flex:none;display:grid;place-items:center;width:28px;height:28px;border:0;background:none;color:#8a8990;font-size:18px;line-height:1;cursor:pointer}
.ab-i{flex:none;width:44px;height:44px;border-radius:11px}
.ab-t{flex:1;min-width:0;line-height:1.25}
.ab-t b{display:block;font-size:15px}
.ab-t span{display:block;font-size:12.5px;color:var(--sub)}
.ab-go{flex:none;display:grid;place-items:center;height:32px;padding:0 16px;border-radius:16px;background:var(--acc);color:#fff;font:600 14px/1 var(--font)}

/* tasks: told while scrolling (the known sticky pattern). Desktop: the section sticks, text on the left, task on the right,
   and the share of the section scrolled picks the task. Below 961: each task sits above its text. */
@media (min-width:761px){
  .feats{display:flex;flex-direction:column}
  .trio{display:contents}                      /* desktop: Feed · Postęp · Plan · tasks, as on the phone (swipe row, then tasks) */
  #feed{order:1} #postep{order:2} #plan{order:3} .tk-hold{order:4}
}
/* desktop: like the section under the hero (#jak): the violet section is as tall as the hold, and its content sticks in the
   middle of the screen while the background scrolls by */
@media (min-width:961px){
  .tk{height:calc(580px + 4 * 50vh)}   /* half a screen of scrolling per task: an ordinary scroll does not skip one */
  .tk-s{cursor:pointer}
}
.tk-pin{position:sticky;top:calc(50vh - 290px);height:580px;display:grid;grid-template-columns:1fr 1fr;grid-template-areas:"t v" "s v";grid-template-rows:auto 1fr;column-gap:var(--s5)}
.tk-t{grid-area:t;display:grid;gap:var(--s3);padding-top:var(--s3)}
.tk-vis{grid-area:v;position:relative}
.tk-stage{position:relative;height:100%}
.tk-steps{grid-area:s;display:grid;align-content:start;gap:var(--s5)}
.tk-s{display:grid;gap:var(--s3);opacity:.35;transition:opacity .5s var(--ease)}
.tk-s.on{opacity:1}
@media (min-width:961px){
  /* a vertical carousel: the window shows this step and the next one; the list slides up so the next takes this one's place */
  .tk-steps{overflow:hidden;align-self:center;height:calc(var(--tk-h,0px) + 2 * var(--s2));margin:calc(-1 * var(--s2)) 0;padding:var(--s2) 0;
    -webkit-mask:linear-gradient(transparent,#000 var(--s2),#000 calc(100% - var(--s2)),transparent);mask:linear-gradient(transparent,#000 var(--s2),#000 calc(100% - var(--s2)),transparent)}   /* the leaving step fades out at the edge instead of being cut */
  .tk-s{transform:translateY(var(--tk-y,0));transition:transform .7s var(--ease),opacity .5s var(--ease)}
}
.tk-s p{color:var(--on-deep-sub);max-width:26em}
/* a task screen, as in the app (flow – makieta aplikacji: taskView, styl-1 tokens): the topic on top with X, the task text
   (17/22), 48 below it the task itself, "Sprawdź" at the bottom (on once the task is done). App sizes 1:1, a 359px screen,
   its right edge on the right edge of the column, in line with the lavender panels of the sections around it. */
.tc{--ink2:#8e8d93;--sub2:#5f5e64;position:absolute;top:50%;right:0;display:flex;flex-direction:column;width:359px;height:580px;padding:0 20px 24px;translate:0 -50%;border-radius:32px;background:#fff;color:var(--ink);font:400 17px/22px -apple-system,"SF Pro Text",system-ui,sans-serif;box-shadow:var(--shadow);opacity:0;transition:opacity 0s linear .4s}
.tc.cur{z-index:1;opacity:1;transition:opacity .4s ease}   /* a crossfade: the new screen fades in over the old one, which stays until it is covered, so the white screen never blinks */
.tc .tt{display:grid;grid-template-columns:24px 1fr 24px;align-items:center;height:44px;margin:12px 0 16px}
.tc .tt b{grid-column:2;text-align:center;font-weight:700}
.tc .tt svg{grid-column:3;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.tc .tq{margin-bottom:48px}                    /* the task text stands clear of the task (the app's s48) */
.tc .th{margin-top:16px;font-size:13px;line-height:18px;color:var(--sub2);text-align:center}
.tc i{font-family:"Times New Roman",serif}
.tc svg{display:block;width:100%;height:auto;overflow:visible}
.tc .tb{display:flex;justify-content:center;align-items:center;flex:none;height:48px;margin-top:auto;border-radius:14px;background:color-mix(in srgb,var(--acc) 35%,#fff);color:#fff;font-weight:600;transition:background-color .35s ease}
.tc.ok .tb{background:var(--acc)}
.tc > :nth-last-child(2){margin-bottom:24px}   /* never closer than 24 to "Sprawdź", also when the screen grows with its content */
/* the solid: the angle between AG and the base lights up */
.solid .face{fill:var(--light);opacity:0;transition:opacity .6s ease}
.solid .hid{fill:none;stroke:var(--ink2);stroke-width:1.2;stroke-dasharray:4 4}
.solid .edge{fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linejoin:round}
.solid .diag{fill:none;stroke:var(--acc);stroke-width:2;stroke-dasharray:5 4}
.solid .ang{fill:var(--acc);transform-box:view-box;transform-origin:30px 130px;transform:scale(0);transition:transform .7s cubic-bezier(.34,1.4,.5,1)}
.solid .lb text{font:italic 13px "Times New Roman",serif;fill:var(--ink)}
.tc-solid.on .face{opacity:1}
.tc-solid.on .ang{transform:none}
/* the plot: the point drops into the minimum */
.plot .grid{fill:none;stroke:#ececf1;stroke-width:1}
.plot .axis{fill:none;stroke:#c7c7cc;stroke-width:1.2}
.plot .curve{fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linecap:round}
.plot .halo{fill:var(--acc);fill-opacity:.18}
.plot .dot{fill:var(--acc);stroke:#fff;stroke-width:2}
.plot .pt circle{opacity:0;transform:translateY(-26px);transition:transform .6s cubic-bezier(.34,1.5,.5,1),opacity .3s ease}
.tc-plot.on .pt circle{opacity:1;transform:none}
/* the call: the line rings, then the four things get ticked off */
.call{padding:16px;border-radius:14px;background:var(--fill)}
.call .who{display:flex;align-items:center;gap:12px}
.call img{width:44px;height:44px;border-radius:50%;object-fit:cover}
.call b{display:block;font-weight:600}
.call .who span{display:block;font-size:13px;line-height:18px;color:var(--sub2)}
.call .ph{display:grid;place-items:center;flex:none;width:44px;height:44px;margin-left:auto;border-radius:50%;background:var(--acc)}
.call .ph svg{width:20px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linejoin:round}
.tc-call.on .ph{animation:ring 1.2s ease-out 2}
@keyframes ring{0%{box-shadow:0 0 0 0 rgba(109,94,201,.45)}100%{box-shadow:0 0 0 14px rgba(109,94,201,0)}}
.tc .todo{display:grid;gap:12px;margin-top:24px}
.tc .todo li{display:flex;align-items:center;gap:12px;font-size:15px;line-height:20px}
.tc .todo li::before{content:"";flex:none;width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 0 1.5px #c7c7cc;transition:background-color .3s ease,box-shadow .3s ease}
.tc .todo li.ok::before{background:var(--acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/72% no-repeat;box-shadow:none}
/* the words: tiles leave the bank and line up into the sentence */
.tc-words .ans{display:flex;flex-wrap:wrap;align-content:flex-start;gap:8px;min-height:96px;margin-bottom:24px;padding-bottom:8px;background:repeating-linear-gradient(transparent 0 47px,var(--fill2) 47px 48px)}   /* two writing lines, as in a notebook */
.tc-words span{display:flex;align-items:center;height:40px;padding:0 14px;border-radius:12px;box-shadow:inset 0 0 0 1px var(--fill2),inset 0 -2px 0 var(--fill2);transition:opacity .3s ease,transform .45s cubic-bezier(.34,1.4,.5,1),color .2s,background-color .2s}
.tc-words .ans span{opacity:0;transform:translateY(8px)}
.tc-words .ans span.in{opacity:1;transform:none}
.tc-words .bank{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.tc-words .bank span.gone{color:transparent;background:var(--fill);box-shadow:none}
@media (max-width:960px){
  .tk{height:auto;display:flex;flex-direction:column;gap:var(--s3)}
  .tk-pin,.tk-vis,.tk-stage,.tk-steps{display:contents}  /* the cards and the steps take turns: task, its text, the next task… */
  .tk-t{order:-1;margin-bottom:var(--s3);padding-top:0}   /* the heading starts where every section's does */
  .tc{position:relative;top:auto;translate:none;align-self:center;max-width:100%;height:auto;min-height:520px;opacity:1;margin-top:var(--s4)}
  .tc[data-i="0"]{order:0}.tk-s[data-i="0"]{order:1}.tc[data-i="1"]{order:2}.tk-s[data-i="1"]{order:3}
  .tc[data-i="2"]{order:4}.tk-s[data-i="2"]{order:5}.tc[data-i="3"]{order:6}.tk-s[data-i="3"]{order:7}
  .tk-s{opacity:1;text-align:center;justify-items:center}
}
.tk-card,.tk-win{display:contents}        /* the panel and its window exist for the phone deck only */
.tk-cap{display:none}
/* phone: the tasks are a deck of lavender panels, like the Feed · Postęp · Plan panels above: on each, the step's title and line,
   and under them the task screen at the same app scale (--k, set in js), cut by the panel's bottom edge. The top panel plays its
   task; two more peek out below it. A swipe (or a tap) slides it off to the side and the next one rises in its place. */
@media (max-width:760px){
  .tk-pin{position:static;height:auto;display:flex;flex-direction:column;align-items:stretch}
  .tk-t{margin-bottom:var(--s5)}
  .tk-vis{display:block;width:100%}
  .tk-stage{--ph:120px;--panel:calc(var(--ph) + var(--s3) + var(--wh,240px) + var(--s3));display:block;height:calc(var(--panel) + 2 * var(--s2));touch-action:pan-y;user-select:none;-webkit-user-select:none}
  .tk-card{position:absolute;inset:0 0 auto;height:var(--panel);display:flex;flex-direction:column;overflow:hidden;border-radius:var(--r2);
    background:color-mix(in srgb,var(--deep) calc(var(--d,0) * 10%),var(--light));transform-origin:50% 100%;
    transform:translateX(var(--dx,0px)) rotate(var(--r,0deg)) translateY(calc(var(--d,0) * var(--s2))) scale(calc(1 - var(--d,0) * .05));
    z-index:calc(4 - var(--d,0));transition:transform .6s cubic-bezier(.22,.8,.28,1),opacity .45s ease,background-color .6s ease}
  .tk-card[data-d="3"]:not(.fly){opacity:0}
  .tk-card.drag{transition:none}
  .tk-card.fly{--dx:calc(var(--fx,-1) * (50vw + 220px));--r:calc(var(--fx,-1) * 6deg);z-index:5;background:var(--light);transition:transform .7s cubic-bezier(.45,0,.2,1)}   /* off the screen, unhurried, over the deck */
  .tk-cap{display:grid;gap:var(--s2);padding:var(--s3) var(--s3) 0;color:var(--ink)}
  .tk-cap b{font:var(--t-h3);text-wrap:balance}
  .tk-cap p{color:var(--sub)}
  .tk-win{position:relative;display:block;flex:1;margin:var(--s3);padding:var(--s3);overflow:hidden;border-radius:var(--r2);background:#fff}   /* a white box with only the task in it */
  .tc{position:absolute;top:0;left:50%;width:359px;height:520px;min-height:0;max-width:none;margin:0 0 0 -179.5px;translate:none;background:none;box-shadow:none;
    transform:translateY(var(--ty,0px)) scale(var(--kc,1));transform-origin:50% 0;opacity:1;transition:none}
  .tc.cur{transition:none}
  .tk-win :is(.tt,.tq,.th,.tb){visibility:hidden}   /* only the task itself */
  .tk-card:not([data-d="0"]) .tk-win{opacity:0}   /* the panels underneath show only their edge; the task comes up with its panel */
  .tk-win{transition:opacity .45s ease .15s}
  .tk-steps{position:absolute;display:block;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}   /* the steps stay for screen readers; the panels show them */
}

/* 5. hero -------------------------------------------------------------------- */
/* the hero is the photo; the live lock screen is warped onto the phone in it (js) */
.hero{position:relative;isolation:isolate;min-height:min(100svh,980px);padding:var(--s6) 0;display:flex;flex-direction:column;background:var(--hero-bg);color:#fff;overflow:hidden}
.hero > .w{position:relative;z-index:2;flex:1;width:100%;display:grid;grid-template-columns:minmax(0,440px);align-content:center}
.hero h1{margin-bottom:var(--s3)}
.hero .h1-acc{color:var(--brand)}
.hero .lead{color:rgba(255,255,255,.78)}
.hero .stores{margin-top:var(--s4)}   /* the space belongs to the badges, so it goes with them */
.statement{display:none}     /* phone only: the hero sentence gets its own moment under the photo */

.photo{--pw:calc(min(100svh,980px) * 4 / 3);position:absolute;z-index:0;top:0;right:min(0px,100vw - max(var(--gut),var(--edge)) - 440px + var(--s5) - .71 * var(--pw));height:100%;aspect-ratio:4/3}   /* moves right only when the window is too narrow, so the tilted phone keeps the same distance from the 440px text as at 1440 */
.photo > img{display:block;width:100%;height:100%;max-width:none}
.photo::after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(90deg,var(--hero-bg) 0%,rgba(5,6,26,.85) 14%,rgba(5,6,26,.35) 28%,transparent 40%)}
.photo-scr{position:absolute;inset:0;z-index:1;overflow:hidden;background:#000}
.photo > img.over{position:absolute;inset:0;z-index:2}   /* the photo with the screen cut out lies over the live screen */
.lock{position:absolute;left:0;top:0;width:402px;height:874px;overflow:hidden;transform-origin:0 0;background:#000}
.lock video,.lock img{display:block;width:100%;height:100%}

/* the logo drains into a drop that falls into the next section (desktop, js) */
.sd{position:fixed;inset:0;z-index:20;pointer-events:none}
.sd svg{display:block;width:100%;height:100%;max-width:none;overflow:visible}
.sd-home{position:fixed;top:14px;left:28px;z-index:21;display:block;width:96px;height:44px}
/* …and the drop floods the three step cards with white, one after another, while they hold still */
#jak .step .fl{display:none}
@media (min-width:961px){
  .js-flood #jak .step{position:relative;background:transparent;color:#fff}
  .js-flood #jak .step p{color:var(--on-deep-sub)}
  .js-flood #jak .step .n{background:#fff;color:var(--deep)}
  .js-flood #jak .step .fl{display:grid;align-content:start;position:absolute;inset:0;padding:inherit;gap:inherit;border-radius:inherit;background:#fff;color:var(--ink);clip-path:circle(0 at 0 50%);pointer-events:none}
  .js-flood #jak .step .fl p{color:var(--sub)}
  .js-flood #jak .step .fl .n{background:var(--deep);color:#fff}
  .js-flood #jak > .w{position:sticky;top:calc(50vh - 190px)}
  .js-flood #jak .pin-sp{height:520px}
}

/* 6. app screens in the panels ----------------------------------------------------
   Pixel values here are the app's own (a 322px wide screen); the stage scales as one on phones. */
.vpanel{position:relative;display:block;height:480px;border-radius:var(--r3);background:var(--light)}
.stg{position:absolute;inset:0;border-radius:inherit}
.cut{position:absolute;left:-120px;right:-120px;top:-200px;bottom:0;overflow:hidden}   /* the screen breaks out of the top edge, the bottom edge cuts it */
.sheet{position:absolute;left:50%;top:156px;width:322px;height:700px;margin-left:-161px;padding:14px 16px 0;border-radius:32px 32px 0 0;background:var(--fill);color:var(--ink);box-shadow:var(--shadow)}

/* Plan: the goal page after two topics, scrolled to its topics (app prototype: goalPage + its _play, 5-ludzie-feed-powiadomienia.js / styl-1..5),
   entered 'thru' as after a lesson; the path plays: each done topic's piece lights up, the line fills violet to the next
   one, the ring settles on the next topic. App sizes at 359px, scaled like the Feed; the app's status bar is left out. */
.pshot .sheet{width:359px;height:584px;margin-left:-179.5px;padding:0;background:#fff;scale:calc(322 / 359);transform-origin:50% 0;overflow:hidden}
.app .gtop{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;height:52px;margin:24px 8px 0}
.app .gtop svg{width:24px;height:24px;justify-self:center}
.app .gtop svg:first-child{width:26px;height:26px;justify-self:start;margin-left:6px}
.app .gtop b{text-align:center;font:700 22px/1.2 -apple-system,"SF Pro Display",system-ui,sans-serif;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}   /* the page scrolled to its topics: the name sits in the bar, as in the app */
.app .gbody{position:absolute;top:76px;left:0;right:0;bottom:0;overflow:hidden;padding:8px 20px 0}
.app .ptabs{display:flex;margin:0 -20px 24px;border-bottom:1px solid var(--fill2)}
.app .ptabs span{flex:1;height:44px;display:grid;place-items:center;position:relative;font:600 15px/1 -apple-system,system-ui,sans-serif;color:var(--sub)}
.app .ptabs span.on{color:var(--ink)}
.app .ptabs span.on::after{content:"";position:absolute;left:28px;right:28px;bottom:-1px;height:2px;border-radius:2px;background:var(--ink)}
.pt{position:relative;padding-top:4px}
.pt-i{position:relative;display:flex;gap:16px;align-items:center;min-height:44px;padding-bottom:24px}
.pt-i:not(:last-child)::before{content:"";position:absolute;left:21px;top:44px;bottom:0;width:2px;background:var(--fill2)}
.pt-i.done::before{background:var(--acc)}
.pt-i::after{content:"";position:absolute;left:21px;top:44px;bottom:0;width:2px;background:var(--acc);transform:scaleY(0);transform-origin:top;opacity:0;pointer-events:none}
.pt-n{flex:none;position:relative;display:block;width:44px;height:44px;border-radius:12px;overflow:hidden;background:var(--fill);transition:box-shadow .35s ease}
.pt-n.next{overflow:visible;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--acc)}
.pt-n.todo{box-shadow:inset 0 0 0 1.5px var(--fill2)}
.pt-n.todo.far{transform:scale(.72);background:var(--light);box-shadow:none}
.pt-tile{position:absolute;inset:0;background:url(../img/cover-mat-r.jpg) 0 0/400% 400% no-repeat;border-radius:inherit;transition:filter .6s ease,opacity .6s ease}
.pt-n.todo .pt-tile{filter:grayscale(1) brightness(.55);opacity:.55}
.pt-n.next .pt-tile{filter:grayscale(.6) brightness(.75)}
.pt-c{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;min-height:44px}
.pt-t{font:600 16px/1.3 -apple-system,system-ui,sans-serif}
.pt-far{font-size:13px;line-height:1.45;color:var(--sub)}
.app .fbtn{flex:none;display:inline-flex;align-items:center;height:36px;margin-left:4px;padding:0 16px;border-radius:10px;background:var(--light);color:var(--deep);font:600 15px/1 -apple-system,system-ui,sans-serif}
/* the play */
.pt-i.pre::before{background:var(--fill2)}
.pt-i.pre:not(.lit) .pt-tile{filter:grayscale(1) brightness(.55);opacity:.55;transition:none}
.pt-i.pre.ring .pt-n{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--acc)}
.pt-i.fill::after{opacity:1;transform:scaleY(1);transition:transform .45s cubic-bezier(.4,0,.2,1)}
.pt-i.next .pt-n.next{box-shadow:inset 0 0 0 1.5px transparent,0 0 0 2px #fff,0 0 0 4px var(--acc)}
.pt-i.wait .pt-n.next{box-shadow:inset 0 0 0 1.5px var(--fill2),0 0 0 0 transparent,0 0 0 0 transparent}   /* same shadow list both ways, so the ring fades in instead of snapping */
.pt-i.wait .pt-n.next .pt-tile{filter:grayscale(1) brightness(.55);opacity:.55}
.pt-i.next .fbtn{transition:opacity .35s ease}   /* together with the ring */
.pt-i.wait .fbtn{opacity:0;transition:none}
/* entered 'thru': the page rises in place, then leaves the same way before the loop starts again */
.pshot .gbody,.pshot .gtop{opacity:0;transform:translate3d(0,4px,0);transition:opacity .4s ease,transform .4s ease}   /* the loop fades out, not cuts */
.pshot.on .gbody,.pshot.on .gtop{opacity:1;transform:none;transition:opacity .5s cubic-bezier(.2,.7,.2,1) .26s,transform .5s cubic-bezier(.2,.7,.2,1) .26s}

/* Feed: the app prototype's current screen (flow – makieta aplikacji, ?shot=feed-progress), its sizes and system font.
   Built at the app's 359px screen width, then scaled to the 322px of the other two screens. */
.fshot .sheet{width:359px;margin-left:-179.5px;padding:0;background:var(--fill);scale:calc(322 / 359);transform-origin:50% 0}
.app{font:400 14px/1.45 -apple-system,"SF Pro Text",system-ui,sans-serif}
.app svg.i{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.app .anav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:52px;margin:24px 20px 8px}   /* 24 above = the 24 below (8 + the list's 16): the bar sits centred, the app's status bar is left out */
.app .ttl{font:700 22px/1 -apple-system,"SF Pro Display",system-ui,sans-serif;letter-spacing:-.02em}
.app .acts{justify-self:end;display:flex;gap:20px}
.app .acts svg{display:block;width:24px;height:24px}
.app .fz{position:absolute;left:0;right:0;top:84px;bottom:0;padding:16px 20px 0;overflow:hidden;background:var(--fill)}
.fc{margin-bottom:16px;padding:16px;border-radius:20px;background:#fff}
.fc .who{display:flex;gap:8px;align-items:center}
.fc .av{flex:none;width:40px;height:40px;border-radius:50%;background:var(--fill2) center/cover no-repeat}
.fc .who b{display:block;font-size:15px;line-height:18px}
.fc .small{display:block;font-size:13px;line-height:16px;color:var(--sub)}
.fc p{margin:16px 0 8px;font-size:15px;line-height:20px}
.fc .vis{display:flex;align-items:center;gap:16px;padding:16px;border-radius:14px;background:var(--fill)}
.fc .vis.goal{flex-wrap:wrap}
.fc .th{width:56px;height:56px;border-radius:12px}
.fc .gx{flex:1;min-width:0}
.fc .gx b{display:block;font-size:15px;line-height:18px}
.fc .lv{display:block;font-size:13px;line-height:16px;color:var(--sub)}
.fc .gpb{display:flex;flex-basis:100%}
.fc .gbar{display:block;flex:1;height:4px;border-radius:4px;background:color-mix(in srgb,var(--ink) 10%,transparent);overflow:hidden}
.fc .gbar i{display:block;height:100%;border-radius:4px;background:var(--acc)}
.streakbox{flex-wrap:wrap;gap:0!important}
.streakbox > b{font:800 34px/40px -apple-system,"SF Pro Display",system-ui,sans-serif;letter-spacing:-.02em}
.streakbox > span{margin-left:8px;font-size:15px;font-weight:600;line-height:20px}
.sdots{display:grid;grid-template-columns:repeat(14,1fr);gap:4px;width:100%;margin-top:16px}
.sdots i{aspect-ratio:1;border-radius:50%;background:var(--acc)}
.sdots i.td{box-shadow:inset 0 0 0 2px var(--acc),inset 0 0 0 4px var(--fill)}   /* today: the ring's gap takes the box's colour */
.fc .fa{display:flex;gap:20px;margin-top:16px;font-size:15px;font-weight:600;line-height:20px;color:var(--sub)}
.fc .fa span{display:flex;align-items:center;gap:4px}
.fc .fa svg{width:20px;height:20px}
.fc .fa em{display:inline-block;font-style:normal;font-variant-numeric:tabular-nums;transition:transform .45s var(--ease)}
/* the loop's motion, unchanged: the list slides, a reaction turns violet and pops */
.fshot .sv{transition:transform .85s cubic-bezier(.45,0,.2,1)}
.fshot .tapme{transition:color .3s var(--ease)}
.fshot .tapme.on{color:var(--acc)}
.clapx.bump svg{animation:burst .5s var(--ease)}
.clapx.bump em{transform:scale(1.22)}
@keyframes burst{35%{transform:scale(1.35) rotate(-8deg)}}

/* end of a topic → what's next: the app prototype's two screens (4-wpisy-momenty.js lessonDone + nextView, styl-3/styl-5),
   their sizes, timings and curves. Built at the app's 359px width and scaled like the Feed; the sheet ends at the panel's
   bottom edge, so the buttons stay in view (the app's status bar is left out). */
.oshot .sheet{width:359px;height:584px;margin-left:-179.5px;padding:0;background:#fff;scale:calc(322 / 359);transform-origin:50% 0;overflow:hidden}
.pv{position:absolute;inset:0;display:none;background:#fff}
.pv.show{display:block;animation:thBg .2s cubic-bezier(.4,0,1,1) both}
.pv.show > *{animation:thInB .5s cubic-bezier(.2,.7,.2,1) .26s both}
.pv.out{animation:thBgOut .24s ease .18s both}
.pv.out > *{animation:thOut .2s cubic-bezier(.4,0,1,1) both}
@keyframes thBg{from{background-color:transparent}}
@keyframes thBgOut{to{background-color:transparent}}
@keyframes thInB{from{opacity:0;transform:translate3d(0,4px,0)}}
@keyframes thOut{to{opacity:0}}
.lbtns{position:absolute;left:20px;right:20px;bottom:24px;display:flex;flex-direction:column;gap:8px}
.app .btn{display:flex;justify-content:center;align-items:center;height:48px;border-radius:14px;background:var(--acc);color:#fff;font:600 17px/1 -apple-system,system-ui,sans-serif;transition:transform .2s cubic-bezier(.2,.6,.2,1),opacity .2s ease}
.app .btn.alt{background:var(--fill);color:var(--ink)}
.app .btn.tap{transform:scale(.985);opacity:.9}
/* "Temat zaliczony": the goal's % rides the bar, then the two lines collide */
.mo{position:absolute;left:32px;right:32px;top:24px;bottom:128px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px}
.mo-pc{position:relative;width:100%;display:flex;flex-direction:column;align-items:stretch;margin-bottom:24px;padding-top:36px;opacity:0;transform:translateY(10px);transition:opacity .4s ease,transform .6s cubic-bezier(.2,.7,.2,1)}
.mo-pc.on{opacity:1;transform:none}
.mo-pc .pl{position:absolute;top:0;left:0;font:700 22px/28px -apple-system,"SF Pro Display",system-ui,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.01em;white-space:nowrap;transform-origin:50% 100%}
.mo-pc .gbar{display:block;width:100%;height:8px;border-radius:4px;background:var(--fill2);overflow:hidden}
.mo-pc .gbar i{display:block;height:100%;border-radius:4px;background:var(--acc)}
.kin{position:relative;width:100%;height:104px}
.kin > div{position:absolute;left:0;right:0;top:50%;text-align:center;font:800 52px/1 -apple-system,"SF Pro Display",system-ui,sans-serif;letter-spacing:-.05em;white-space:nowrap;opacity:0}
.kin .k2{color:var(--acc)}
/* what's next: the next piece ringed on the cover, the topic, what's in it */
.ls-top{display:flex;justify-content:flex-end;align-items:center;height:52px;margin-top:8px;padding:0 20px}
.ls-top svg{width:24px;height:24px}
.ldone{position:absolute;top:60px;left:20px;right:20px;bottom:128px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.ld-cv{width:176px;height:176px;margin-bottom:24px;border-radius:34px;transform:scale(.7);opacity:0;transition:transform 1s cubic-bezier(.2,.7,.2,1),opacity .5s ease}
.ld-ring{position:absolute;width:25%;height:25%;border-radius:4px;box-shadow:inset 0 0 0 3px var(--acc);animation:ldRing 1.6s ease-in-out infinite}
@keyframes ldRing{50%{box-shadow:inset 0 0 0 3px transparent}}
.ld-t{font:700 22px/28px -apple-system,"SF Pro Display",system-ui,sans-serif;letter-spacing:-.01em}
.ld-s{font-size:15px;line-height:20px;color:var(--sub);text-wrap:balance}
.ldone > :not(.ld-cv){opacity:0;transform:translateY(12px);transition:opacity .5s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.pv.in .ld-cv{transform:none;opacity:1}
.pv.in .ldone > :not(.ld-cv){opacity:1;transform:none}
.pv.in .ld-t{transition-delay:.15s}
.pv.in .ld-s{transition-delay:.22s}


/* phone: Feed · Postęp · Plan swipe as one row with dots (hidden on larger screens) */
.dots{display:none}

/* 7. footer, banner, cookies ------------------------------------------------------
   As on imprv.ai (imprv-strona – final/style.css), with imprv's own tokens scoped here, in flow's colours. */
.foot,.banner-mark{
  --i-white:#fff; --i-deep:var(--deep); --i-light:var(--light);
  --s-2:8px; --s-4:16px; --s-5:24px; --s-6:32px; --s-7:48px; --s-8:64px; --s-9:96px; --s-10:128px;
  --t-xs:13px; --t-s:16px; --w-head:600; --control:48px; --k:1;
  --f-edge:max(max(var(--s-6),round(4.5vw,1px)),round(down,(100vw - 1536px) / 2,1px));   /* imprv: gutter, or centre a 1536 wrap */
}
@media (min-width:961px){.foot,.banner-mark{
  --s-5:20px; --s-6:30px; --s-7:44px; --s-8:56px; --s-9:88px; --s-10:120px; --t-xs:12px; --control:44px; --k:.9;
  --f-edge:max(max(var(--s-6),round(4.5vw,1px)),round(down,(100vw - 1384px) / 2,1px));
}}
main{overflow-x:clip}   /* the banner is wider than a phone: its edges are cut, the page never scrolls sideways */
.banner-mark{position:relative;margin:var(--s-10) 0 -.18em;text-align:center;white-space:nowrap;font-family:var(--font);font-size:17.8vw;line-height:.8;letter-spacing:-.055em;font-weight:var(--w-head);color:var(--i-deep);pointer-events:none}
.foot{padding:var(--s-9) 0 var(--s-6);background:var(--i-deep);color:var(--i-white);font-family:var(--font);font-size:var(--t-s);line-height:1.5}
.foot .w{max-width:none;padding:0 min(var(--f-edge),max(var(--gut),(100vw - var(--content)) / 2))}   /* imprv's edge, never wider than the page's own margin */
.ft-top{display:grid;grid-template-columns:auto 1fr minmax(0,round(calc(320px * var(--k)),1px));gap:var(--s-9);align-items:start}
.ft-brand{display:grid;justify-items:start;gap:var(--s-4)}
.ft-mark{width:var(--s-9);height:var(--s-9);fill:var(--i-white)}
.ft-by{width:var(--s-9);height:auto;fill:currentColor;color:var(--i-white)}
.ft-cols{display:flex;flex-wrap:wrap;gap:var(--s-7) var(--s-8)}   /* four columns; a narrow screen moves the last one down */
.ft-h,.ft-legal{text-box:trim-both cap alphabetic}
.ft-h{margin:0 0 var(--s-4);font-size:var(--t-s);line-height:1.5;font-weight:var(--w-head);letter-spacing:0;color:var(--i-light)}
.ft-cols li + li{margin-top:var(--s-2)}
.ft-cols address{font-style:normal;color:var(--i-light)}
.ft-cols a,.ft-link{font-size:var(--t-s);line-height:1.5;color:var(--i-white)}
.ft-link{padding:0;border:0;background:none;font-family:inherit;cursor:pointer;text-align:left}
.ft-cols a:hover,.ft-cols a:focus-visible,.ft-link:hover,.ft-link:focus-visible{text-decoration:underline;text-underline-offset:3px}
.news-form{display:flex;align-items:center;gap:var(--s-2);box-shadow:inset 0 -2px 0 var(--i-white)}
.news-form[hidden]{display:none}
.news-form[hidden] + .ft-ig{margin-top:0} /* without the form the link sits at the top of its column */
.news-form input{flex:1;min-width:0;height:var(--control);padding:0;border:0;background:none;font:inherit;color:var(--i-white);outline:none}
.news-form input::placeholder{color:var(--i-light)}
.news-form button{display:grid;place-items:center;width:var(--control);height:var(--control);padding:0;border:0;background:none;color:var(--i-white);cursor:pointer}
.news-form button svg{width:var(--s-5);height:var(--s-5);fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .35s cubic-bezier(.22,1,.36,1)}
.news-form button:hover svg,.news-form button:focus-visible svg{transform:translateX(4px)}
.foot .ft-stores{flex-direction:column;align-items:flex-start;gap:var(--s-4)}   /* a footer column of its own, badges one under the other */
.ft-ig{display:inline-flex;align-items:center;gap:var(--s-2);height:var(--control);margin-top:var(--s-5);color:var(--i-white)}   /* one link: icon and line */
.ft-ig svg{display:block;fill:currentColor}
.ft-ig:hover span,.ft-ig:focus-visible span{text-decoration:underline;text-underline-offset:3px}
.ft-legal{margin:var(--s-9) 0 0;padding-top:var(--s-5);font-size:var(--t-xs);line-height:1.5;color:var(--i-light);box-shadow:inset 0 1px 0 rgb(255 255 255 / .15)}
@media (max-width:1360px){.ft-top{grid-template-columns:auto minmax(0,1fr);gap:var(--s-7)}.ft-news{grid-column:1/-1;max-width:420px}}
@media (max-width:760px){
  .banner-mark{display:flex;justify-content:center;margin-top:var(--s-9);font-size:19.5vw}
  .foot{--f-edge:var(--s-4);padding:var(--s-8) 0 var(--s-5)}   /* imprv's phone gutter */
  .ft-top{grid-template-columns:auto minmax(0,1fr);gap:var(--s-7) var(--s-6)}
  .ft-cols{display:contents}                              /* its columns join the grid: stores beside the mark, news below, links last */
  .ft-brand{grid-column:1;grid-row:1}
  .ft-cols > div:last-child{grid-column:2;grid-row:1;justify-self:start;margin-top:calc((var(--s-8) - 52px) / 2)}   /* on the "Kontakt" line, centred on the mark */
  .ft-news{grid-column:1 / -1;grid-row:2}
  .ft-mark,.ft-by{width:var(--s-8)}
  .ft-mark{height:var(--s-8)}
  .ft-legal{margin-top:var(--s-7)}
}
@media (max-width:389px){
  .ft-cols > div:last-child{grid-column:1 / -1;justify-self:end}   /* narrower phones: the badge no longer fits that column, so it keeps to the right edge */
}

/* cookie banner: reject as easy as accept, categories on demand */
.ck{
  --i-white:#fff; --i-deep:var(--deep); --i-light:var(--light); --i-copy:#4a4757;
  --s-2:8px; --s-4:16px; --s-5:24px; --s-6:32px; --t-s:16px; --t-l:21px; --w-head:600; --w-ui:500; --control:48px; --r:24px; --k:1;
  position:fixed;z-index:60;left:var(--s-6);bottom:var(--s-6);width:min(round(calc(420px * var(--k)),1px),calc(100vw - 2 * var(--s-6)));padding:var(--s-5);border-radius:var(--r);background:var(--i-white);color:var(--i-deep);font-family:var(--font);box-shadow:0 0 0 1px color-mix(in srgb,var(--i-deep) 8%,transparent),0 24px 48px -16px rgb(20 18 28 / .35);opacity:0;transform:translateY(var(--s-4));transition:opacity .4s ease,transform .5s cubic-bezier(.22,1,.36,1)}
@media (min-width:961px){.ck{--s-5:20px;--s-6:30px;--t-l:20px;--control:44px;--r:20px;--k:.9}}
.ck[hidden],.ck-set[hidden]{display:none}
.ck.on{opacity:1;transform:none}
.ck-title{margin:0 0 var(--s-2);font-size:var(--t-l);line-height:1.25;letter-spacing:-.02em;font-weight:var(--w-head)}
.ck-desc{font-size:var(--t-s);line-height:1.5;color:var(--i-copy)}
.ck-desc a{color:var(--i-deep);font-weight:var(--w-ui);text-decoration:underline;text-underline-offset:3px}
.ck-set{margin:var(--s-4) 0 0;padding:0;border:0}
.ck-id{margin:var(--s-4) 0 0;padding:var(--s-4);border-radius:calc(var(--r) / 2);background:var(--i-light);font-size:var(--t-s);line-height:1.5;color:var(--i-copy);overflow-wrap:anywhere}
.ck-id[hidden]{display:none}
.ck-id span{display:block}
.ck-id span + span{margin-top:var(--s-2)}
.ck-id b{display:block;font-weight:var(--w-ui);color:var(--i-deep)}
.ck-opt{display:flex;align-items:center;justify-content:space-between;gap:var(--s-4);min-height:var(--control);padding:var(--s-2) 0;box-shadow:inset 0 -1px 0 color-mix(in srgb,var(--i-deep) 15%,transparent);font-size:var(--t-s);font-weight:var(--w-ui);cursor:pointer}
.ck-opt:last-child{box-shadow:none}
.ck-opt input{appearance:none;flex:none;position:relative;width:44px;height:24px;margin:0;border-radius:999px;background:var(--i-light);cursor:pointer;transition:background-color .25s ease}
.ck-opt input::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--i-white);transition:transform .3s cubic-bezier(.22,1,.36,1)}
.ck-opt input:checked{background:var(--i-deep)}
.ck-opt input:checked::after{transform:translateX(20px)}
.ck-opt input:disabled{opacity:.5;cursor:default}
.ck-btns{display:grid;grid-template-columns:1fr 1fr;gap:var(--s-2);margin-top:var(--s-5)}
.ck-btn{height:var(--control);border:0;border-radius:999px;background:none;box-shadow:inset 0 0 0 2px var(--i-deep);color:var(--i-deep);font-size:var(--t-s);font-weight:var(--w-ui);cursor:pointer;transition:background-color .25s ease,color .25s ease}
.ck-btn:hover{background:var(--i-light)}
.ck-yes{background:var(--i-deep);color:var(--i-white)}
.ck-yes:hover{background:color-mix(in srgb,var(--i-deep) 88%,var(--i-white))}
.ck-more{display:block;margin:var(--s-4) auto 0;padding:var(--s-2);border:0;background:none;color:var(--i-deep);font-size:var(--t-s);font-weight:var(--w-ui);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
@media (max-width:760px){.ck{left:var(--s-4);right:var(--s-4);bottom:var(--s-4);width:auto}}

/* 8. motion ------------------------------------------------------------------ */
/* hero entrance: the end state is the element's normal state, so nothing jumps when it ends */
@keyframes rise{from{opacity:0;transform:translateY(24px)}}
.hero .rv-h{animation:rise 1.1s var(--ease) both}
.hero .lead.rv-h{animation-delay:.08s}
.hero .stores.rv-h{animation-delay:.16s}
/* scroll reveal: classes added by script, so without script everything is visible */
.rv{opacity:0;transform:translateY(40px);transition:opacity .9s var(--ease),transform 1.1s var(--ease)}
.rv.in{opacity:1;transform:none}
.js .vpanel .vc{opacity:0;transform:translateY(28px) scale(.98);transition:opacity .8s var(--ease),transform 1.1s var(--ease)}
.js .vpanel.in .vc{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero .rv-h{animation:none}
  .rv,.js .vpanel .vc{opacity:1;transform:none;transition:none}
  .cv .dim mask rect,.ck,.ck-opt input,.ck-opt input::after{transition:none}
  .ld-ring{animation:none}
  .tc,.tk-s{transition:none}
  .sd,.sd-home{display:none}
  .nav .logo{visibility:visible}
}

/* 9. responsive ---------------------------------------------------------------- */
/* below 1360 the doodle bands would squeeze the content: no doodles, the same 1040 content */
@media (max-width:1359px){
  :root{--content:1040px}
  .dd{display:none}
}

/* tablet: features stack, steps become an open list on the violet */
@media (max-width:960px){
  /* phone and tablet: the photo fills the screen around the phone; the line sits on the jeans */
  .hero{min-height:100svh;padding:72px 0 var(--s5)}
  .hero > .w{grid-template-columns:1fr;align-content:end;text-align:center}
  .hero h1{margin-bottom:0}
  .hero .lead,.hero .stores{display:none}
  .photo{left:50%;right:auto;transform:translateX(-56%)}
  .photo::after{background:linear-gradient(180deg,transparent 45%,rgba(5,6,26,.75) 72%,var(--hero-bg) 92%)}
  .statement{display:block;position:relative;margin-top:calc(-1px - var(--s4));   /* up with the headline (the hero's bottom padding grew by s4), the gap between them unchanged */
    padding:0 0 var(--sec-y);background:var(--hero-bg)}
  .statement p{font:var(--t-lead);color:rgba(255,255,255,.78);text-align:center}
  .feat .w{grid-template-columns:1fr;gap:var(--s4)}
  .feat.flip .txt{order:0}
  .feat .vpanel{width:100%;max-width:600px;margin:var(--s5) auto 0}   /* room for the app screen, which breaks out of the panel's top edge */
  .goals{gap:var(--s2)}
  .steps{grid-template-columns:1fr;gap:var(--s4);max-width:560px}
  .step{grid-template-columns:32px 1fr;gap:var(--s3) var(--s2);padding:0;border-radius:0;background:none;color:#fff}
  .step .n{grid-row:span 2;margin:0;background:#fff;color:var(--deep)}
  .step h3{align-self:center}
  .step p{grid-column:2;color:var(--on-deep-sub)}
}

/* phone: everything left-aligned, no boxes around lists, every panel spans the content width */
@media (max-width:760px){
  .body{max-width:none}
  .soon{grid-template-columns:1fr}
  .soon-c{display:contents}
  .soon-q{order:1}   /* both boxes first, then the question */
  .soon-b{padding:var(--s3)}

  .sd,.sd-home{display:none}               /* the plain logo, no drain and drop */
  .nav .logo{width:68px;visibility:visible}

  .stores{justify-content:center;gap:var(--s1)}

  .feat .w{gap:var(--s4)}
  .feat .txt,.feat.flip .txt{order:2}

  /* Feed · Postęp · Plan: one slide at a time, panel · air · text */
  .trio{display:flex;align-items:flex-start;padding:calc(var(--sec-y) + var(--s4)) 0 var(--s4);overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none}
  .trio::-webkit-scrollbar{display:none}
  .trio > section{flex:0 0 100%;padding:0;overflow:visible;background:none;color:var(--ink);scroll-snap-align:center;scroll-snap-stop:always}
  .trio .deep .body{color:var(--sub)}
  .trio .feat .vpanel{display:flex;flex-direction:column;justify-content:center;width:84%;height:auto;aspect-ratio:405/480;margin:0 auto;border-radius:var(--r2)}
  .stg{inset:auto;left:0;top:0;width:405px;height:480px;transform:scale(var(--s,1));transform-origin:0 0}   /* the stage scales as one */
  .trio .txt{text-align:center;justify-items:center}
  .trio .txt.rv{transform:none}            /* fade only: a rising caption would let the row scroll vertically */
  .dots{display:flex;justify-content:center;gap:var(--s1);padding:0 0 var(--sec-y)}
  .dots button{position:relative;width:8px;height:8px;padding:0;border:0;border-radius:4px;background:var(--fill2);transition:width .35s var(--ease),background .35s var(--ease)}
  .dots button[aria-current="true"]{width:24px;background:var(--acc)}
  .dots button::after{content:"";position:absolute;inset:-8px -4px}

  .goals{grid-template-columns:1fr;gap:var(--s3)}
  .goal{grid-template-columns:64px 1fr;column-gap:var(--s2);align-items:center}
  .goal .cv{grid-row:span 2;margin:0;border-radius:var(--r1)}
  .goal h3{align-self:end}
  .goal .lv{align-self:start}   /* title and level stay a pair, centred on the cover */

}
