/* ==========================================================================
   2Click Revenue · Home v7 · mobile (iPhone 16, ≤ 700 px)
   Źródło: Figma „Home v7 · Mobile 393 (iPhone 16)” 517:4574 + docs/17.
   Desktop i tablet bez zmian; ten plik tylko nadpisuje układ na telefonie.
   ========================================================================== */

/* rezerwacja wysokości: klon mierzony poza widokiem, bez animacji (wszystkie szerokości) */
.measure-clone{position:absolute!important;inset:auto!important;left:0!important;top:0!important;visibility:hidden!important;pointer-events:none;min-height:0!important;height:auto!important;margin:0!important;opacity:1!important;transform:none!important}
.measure-clone,.measure-clone *{transition:none!important;animation:none!important}

/* dolny pasek menu + arkusz: poza telefonem niewidoczne */
.tabbar,.sheet,.scrim,.footer__col h4 .tg{display:none}

@media (max-width:700px){
  :root{--margin:16px;--gutter:16px}
  html{scroll-padding-top:64px}
  body{padding-bottom:calc(57px + env(safe-area-inset-bottom,0px))}

  /* ---------- typografia (style Mobile/*) ---------- */
  .display-xl{font-size:40px;line-height:44px;letter-spacing:-.02em}
  .display-l{font-size:30px;line-height:36px;letter-spacing:-.015em}
  .display-m,.statement{font-size:24px;line-height:32px;letter-spacing:-.01em;font-weight:300}
  .lead{font-size:17px;line-height:26px}
  .numeral-l{font-size:40px;line-height:46px}
  .body-m{font-size:16px;line-height:25px}
  .heading-s{font-size:24px;line-height:30px}

  /* ---------- nav: tylko wordmark + język ---------- */
  .nav,.nav__inner{height:56px}
  .nav__inner{justify-content:space-between;gap:12px}
  .nav__links,.nav .btn,.mega{display:none!important}
  .nav__right{gap:0}
  .lang{margin-right:0}

  /* ---------- sekcje i nagłówki rozdziałów ---------- */
  .section{padding:56px 0}
  .section--grey{padding:48px 0}
  .chapter{padding-top:0;margin-bottom:28px;gap:12px}
  .chapter::before{display:none}
  .chapter__main{gap:12px}
  .chapter .aside{padding-top:0;gap:12px}
  #tech .chapter{margin-bottom:28px}
  #faq .chapter{margin-bottom:24px!important}
  .offset-2{margin-left:0}
  .btn{height:50px}

  /* ---------- 00 hero ---------- */
  .hero{padding:24px 0 48px}
  .hero__head{gap:20px}
  .hero h1 br{display:none}
  .hero__lead{display:flex;flex-direction:column;align-items:stretch;gap:20px;margin-top:0}
  .hero__lead > span:first-child{display:none}
  .hero__ctas{flex-direction:column;gap:10px;justify-content:flex-start}
  .hero__ctas .btn{width:100%;justify-content:center}
  .hero__panel{margin-top:20px;padding:12px 0 12px;border-radius:16px}
  .hero__panel::after{content:"";position:absolute;top:12px;right:0;width:48px;height:40px;background:linear-gradient(90deg,rgba(241,240,239,0),#F1F0EF);pointer-events:none;z-index:1}
  .tiles{justify-content:flex-start;gap:8px;padding:0 12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  .tiles::-webkit-scrollbar{display:none}
  .tile{height:40px;flex:none;scroll-snap-align:start}
  .tile[data-module] .lb{width:auto!important;padding:0 8px 0 10px!important;opacity:1!important}
  .tile:hover{transform:none}
  .tiles__sep,.tile--ext{display:none}
  .hero__window{margin:12px 12px 0;width:auto;height:336px;border-radius:12px;box-shadow:none}
  .hero__bar{height:36px}
  .hero__bar .dots{left:10px}
  .hero__bar .url{height:24px;font-size:12px;padding:0 10px;max-width:calc(100% - 64px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .hero__window img{width:196%;max-width:none;height:auto}
  .hero__card{position:static;width:auto;max-width:none;margin:12px 12px 0;padding:14px 16px;gap:8px;border-radius:14px}
  .hero__card p{font-size:14px;line-height:21px}

  /* ---------- 00c dowody: marquee w kompaktowych kaflach ---------- */
  .proof{padding:8px 0 48px}
  .proof__head{flex-direction:column;align-items:flex-start;gap:8px;margin-bottom:20px}
  .marquee{mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 48px),transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 48px),transparent)}
  .marquee__track{gap:10px;animation-duration:38s}
  .marquee + .marquee{margin-top:10px}
  .ptile{height:84px;padding:0 20px;gap:12px;border-radius:12px}
  .ptile--logo{width:164px!important}
  .ptile--num{min-width:0;padding:0 18px}
  .ptile--num .numeral-l{font-size:34px;line-height:38px}
  .ptile--num span{font-size:13px;line-height:18px;max-width:130px}
  .ptile--quote{width:312px!important;padding:0 18px;gap:4px}
  .ptile--quote .heading-xs{font-size:15px;line-height:20px}
  .ptile--quote p{font-size:12px;line-height:17px}
  .logo{transform:scale(.8)}

  /* ---------- 00b manifest ---------- */
  .manifest{padding:8px 0 48px}

  /* ---------- 01 problem ---------- */
  .problem__row{display:flex;flex-direction:column;gap:16px}
  .problem__row .photo{min-height:0;height:300px}
  .photo-chip{left:10px;right:10px;bottom:10px;max-width:none;width:auto;padding:12px 14px;gap:6px;border-radius:12px}
  .photo-chip .h{font-size:11px}
  .photo-chip .h .sq{width:22px;height:22px}
  .photo-chip .t{font-size:16px;line-height:22px}
  .photo-chip .f{white-space:normal;font-size:13px;line-height:18px}
  .ledger{padding:16px}
  .ledger .meta{margin-bottom:8px}
  .loss{display:grid;grid-template-columns:36px 1fr;column-gap:12px;row-gap:8px;align-items:start;padding:14px}
  .loss .icon-circle{width:36px;height:36px}
  .loss .t strong{white-space:normal;font-size:17px;line-height:23px}
  .loss .t span{white-space:normal}
  .loss .t{grid-column:2}
  .loss .tag{grid-column:2;justify-self:start;height:24px;font-size:11px!important;padding:0 8px!important}
  .ledger__foot{padding:8px 0 0}
  .statement-row{margin-top:32px}

  /* ---------- 02 revenue flow ---------- */
  .flow{margin-bottom:16px}
  .flow__labels{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;margin-top:14px;padding-bottom:4px;scrollbar-width:none;row-gap:0;overscroll-behavior-x:contain}
  .flow__labels::-webkit-scrollbar{display:none}
  .flow__tab{flex:none;flex-direction:row;align-items:center;gap:8px;height:42px;padding:0 14px 0 12px;border-radius:999px;background:#fff;scroll-snap-align:start;color:var(--ink)}
  .flow__tab .d{display:none}
  .flow__tab .l,.flow__tab.is-active .l{font-size:14px;font-weight:500}
  .flow__tab.is-active{background:var(--ink);color:#fff}
  .flow__tab.is-active .n{color:var(--accent)}
  .stage{display:flex;flex-direction:column;gap:16px;padding:16px;min-height:0}
  .stage__copy{gap:14px}
  .stage__h{gap:10px}
  .stage__h .display-m{font-size:30px;line-height:36px;font-weight:400}
  .stage__mods{margin-top:-4px;gap:6px}
  .stage__items{gap:10px}
  .stage__items li{align-items:flex-start}
  .stage__items .lucide{margin-top:4px}
  .stage__foot{flex-direction:column;align-items:flex-start;gap:8px;padding-top:0}
  .kpis{gap:8px}
  .kpi{padding:14px!important;gap:4px!important}
  .kpi span.numeral-l{font-size:28px;line-height:34px}
  .minifig{margin-top:0;padding:14px;gap:10px}
  .minifig .fh{gap:8px;align-items:flex-start}
  .minifig .status{height:26px;font-size:12px;padding:0 10px;flex:none}
  .minifig .sec{grid-template-columns:112px 1fr 46px;gap:10px;font-size:13px}
  .statement-cta{display:flex;flex-direction:column;align-items:stretch;gap:16px;margin-top:24px}
  .statement-cta > span:first-child{display:none}
  .statement-cta .btn{justify-self:auto;width:100%;justify-content:center}
  #flow{padding-bottom:48px}

  /* ---------- 02b diagnoza ---------- */
  .diag{display:flex;flex-direction:column;gap:16px}
  .diag__form{padding:16px;gap:20px}
  .diag__step{gap:10px}
  .diag__chips{gap:8px}
  .diag__chips .chip{height:42px;padding:0 14px;font-size:14px}
  .diag__action{flex-direction:column;align-items:stretch;gap:10px;text-align:center}
  .diag__action .btn{width:100%;justify-content:center}
  .diag__result{padding:18px;gap:12px;align-self:stretch;position:static}
  .diag__promise{padding:14px}
  .diag__result .btn{width:100%;justify-content:center;align-self:stretch!important}

  /* ---------- 04 commerce intelligence ---------- */
  .ci{display:flex;flex-direction:column;gap:20px}
  .step{gap:14px}
  .step .c{gap:14px;padding:10px 0}
  .step .h strong{font-size:18px;line-height:24px}
  .step .d{font-size:15px;line-height:23px}
  .stepper__hint{padding-left:0;margin-top:8px}
  .fig{padding:10px;min-height:0}
  .fig__win{padding:14px;gap:10px;border-radius:12px}
  .fig__head{flex-direction:column;align-items:flex-start;gap:2px;font-size:13px}
  .fig__signal{font-size:13px;line-height:18px;padding:10px 12px;align-self:stretch;align-items:flex-start}
  .fig__signal .lucide{margin-top:1px}
  .fig__row{gap:10px;padding:12px 0;align-items:flex-start}
  .fig__row .t{min-width:0;flex:1 1 auto}
  .fig__row > .lucide{margin-top:2px}
  .fig__row a{flex:none;margin-top:2px}
  .fig__row .t strong{font-size:15px}
  .fig__row .t span{font-size:13px}
  .fig__row a{height:30px;display:inline-flex;align-items:center;padding:0 12px;border-radius:999px;background:var(--ink);color:#fff;font-size:12px;letter-spacing:.04em;text-transform:uppercase}
  .fig__input{font-size:13px;padding:10px 10px 10px 12px;gap:8px}
  .fig__input .go{width:32px;height:32px;border-radius:50%;flex:none}

  /* ---------- 04b ai + human: karuzela kart ---------- */
  #ai .panel{padding:16px 0}
  .cards5{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:0 16px 4px;scrollbar-width:none;overscroll-behavior-x:contain}
  .cards5::-webkit-scrollbar{display:none}
  .card{flex:0 0 264px;min-height:0;padding:16px;gap:10px;scroll-snap-align:start}
  .card .icon-circle{width:36px;height:36px;margin-bottom:0}
  .band{margin:16px 16px 0;padding:18px;gap:14px;display:flex;flex-direction:column}
  .band .statement{font-size:22px;line-height:29px}
  .band__levels{gap:10px}
  .band__levels .levels{gap:6px}
  .band__levels .levels span{height:30px;font-size:11px;padding:0 10px}

  /* ---------- 05 dla kogo ---------- */
  .segments{overflow-x:auto;gap:8px;margin-bottom:16px;scrollbar-width:none;padding-bottom:2px;overscroll-behavior-x:contain}
  .segments::-webkit-scrollbar{display:none}
  .segments .chip{flex:none}
  .proofline{flex-direction:column;align-items:flex-start;gap:8px;padding:14px 16px;border:0;border-radius:12px;background:var(--paper-2);margin-bottom:16px}
  .proofline .lg{border:0;padding:0}
  .dk{display:flex;flex-direction:column;gap:16px}
  .dk .photo{min-height:0;height:280px}
  .dk__panel{padding:16px;gap:16px}
  .dk__panel .lead-m{font-size:16px;line-height:25px;color:var(--ink-2)}
  .portal{padding:12px;gap:10px}
  .portal .top{flex-direction:column;align-items:flex-start;gap:4px}
  .portal .products{grid-template-columns:1fr 1fr;gap:8px}
  .product{padding:10px;font-size:13px}
  .product .ph{height:64px}
  .popover{display:flex;position:static;width:auto;background:rgba(255,255,255,.82);box-shadow:var(--glass-shadow);padding:14px;backdrop-filter:none;-webkit-backdrop-filter:none}
  .popover .r{flex-direction:row}
  .popover .r div{display:flex;flex-direction:column;gap:2px}
  .cursor{display:none}

  /* ---------- 06 perspektywy ---------- */
  .roles{flex-direction:column;align-items:flex-start;gap:10px;margin-bottom:20px}
  .roles .chips{flex-wrap:nowrap;overflow-x:auto;width:100%;scrollbar-width:none;padding-bottom:2px;overscroll-behavior-x:contain}
  .roles .chips::-webkit-scrollbar{display:none}
  .roles .chips .chip{flex:none}
  .persp{display:flex;flex-direction:column;gap:16px}
  .persp > span:first-child{display:none}
  .persp__statement{gap:14px}
  .kpi-panel{padding:18px;background:#fff;gap:8px;align-self:stretch}

  /* ---------- 07 case studies ---------- */
  .filter{flex-direction:column;align-items:flex-start;gap:10px;margin-bottom:20px}
  .filter .chips{overflow-x:auto;width:100%;scrollbar-width:none;padding-bottom:2px;overscroll-behavior-x:contain}
  .filter .chips::-webkit-scrollbar{display:none}
  .filter .chips .chip{flex:none}
  .featured{display:flex;flex-direction:column;gap:16px;border-radius:0;overflow:visible}
  .featured .photo{order:-1;border-radius:16px;height:260px}
  .story{padding:16px;gap:14px;border-radius:16px}
  .story blockquote{font-size:24px;line-height:32px}
  .story .h{flex-wrap:wrap;gap:10px}
  .story .h .vsep{display:none}
  .chso{grid-template-columns:1fr;gap:12px;margin-top:0}
  .story .btn{align-self:stretch;justify-content:center}
  .metrics{left:10px;right:10px;bottom:10px}
  .metrics .cell{padding:10px 8px;gap:4px}
  .metrics .cell .ic{width:22px;height:22px}
  .metrics .cell .lucide{width:12px;height:12px}
  .metrics .cell .numeral-l{font-size:26px;line-height:32px}
  .metrics .cell span{font-size:11px;line-height:14px}

  /* ---------- 08 technologia ---------- */
  .facts{grid-template-columns:1fr 1fr;gap:12px 8px;margin-bottom:28px}
  .fact{padding-top:14px;gap:4px}
  .fact .v .u{font-size:15px}
  .fact .heading-xs{font-size:15px;line-height:20px}
  .fact p{font-size:13px;line-height:18px}
  .evidence{display:flex;flex-direction:column;gap:10px}
  .ev{padding:16px;gap:12px}
  .ev .rows{gap:6px}
  .ev .r{padding:10px 12px;gap:10px}

  /* ---------- 09 wdrożenie: oś pionowa ---------- */
  .process{padding:16px;margin-bottom:16px}
  .process__line{display:none}
  .steps4{display:flex;flex-direction:column;gap:12px;position:relative;padding-left:26px}
  .steps4::before{content:"";position:absolute;left:6px;top:8px;bottom:8px;width:2px;background:var(--line)}
  .step4{min-height:0;padding:14px;position:relative;border:0;gap:8px}
  .step4::before{content:"";position:absolute;left:-26px;top:16px;width:14px;height:14px;border-radius:50%;background:#fff;border:1.5px solid var(--line);transition:background .3s,border-color .3s}
  .step4.is-active::before{background:var(--accent);border-color:var(--accent)}
  .step4:not(.is-active){background:rgba(255,255,255,.5);box-shadow:none}
  .step4:not(.is-active) p{display:none}
  .step4:hover{transform:none}
  .step4 .heading-xs{font-size:18px;line-height:24px;margin-top:0}
  .step4 .top .icon-circle{width:32px;height:32px}
  .cta-row{flex-direction:column;align-items:stretch;gap:10px;margin-bottom:24px;text-align:center}
  .cta-row .btn{width:100%;justify-content:center}
  .wide-photo{aspect-ratio:auto;height:240px}

  /* ---------- 10 faq ---------- */
  .faq{display:flex;flex-direction:column}
  .faq > span:first-child{display:none}
  .faq__filters{overflow-x:auto;scrollbar-width:none;padding-bottom:20px;overscroll-behavior-x:contain}
  .faq__filters::-webkit-scrollbar{display:none}
  .faq__filters .chip{flex:none}
  .faq__q{gap:10px;padding:16px 0;align-items:flex-start}
  .faq__q .n{width:22px;padding-top:4px}
  .faq__q strong{font-size:17px;line-height:23px}
  .faq__a p{padding:0 44px 16px 32px}

  /* ---------- 11 stopka ---------- */
  .footer{padding:48px 0 32px}
  .footer__cta{display:flex;flex-direction:column;align-items:stretch;gap:16px;padding-bottom:32px}
  .footer__cta .ctas{flex-direction:column;gap:10px;justify-content:flex-start}
  .footer .btn{width:100%;justify-content:center}
  /* grupy linków = akordeon (jedna kolumna, wiersze 52 px, linki 44 px) */
  .footer__cols{display:flex;flex-direction:column;gap:0;padding:24px 0 8px}
  .footer__brand{padding-bottom:24px}
  .footer__col{border-top:1px solid rgba(255,255,255,.12)}
  .footer__col h4{display:flex;align-items:center;justify-content:space-between;height:52px;margin:0;cursor:pointer;color:rgba(255,255,255,.85);-webkit-tap-highlight-color:transparent}
  .footer__col h4 .tg{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.08);color:#fff;transition:background .2s,transform .25s var(--ease-out)}
  .footer__col h4 .tg .lucide{width:14px;height:14px}
  .footer__col.is-open h4{color:#fff}
  .footer__col.is-open h4 .tg{background:#fff;color:var(--ink);transform:rotate(45deg)}
  .footer__links{display:grid;grid-template-rows:0fr;transition:grid-template-rows .32s var(--ease-expo)}
  .footer__links > div{overflow:hidden}
  .footer__col.is-open .footer__links{grid-template-rows:1fr}
  .footer__col a{padding:11px 0;font-size:16px;line-height:22px}
  .footer__links > div{padding-bottom:0}
  .footer__col.is-open .footer__links > div{padding-bottom:8px}
  .footer__legal{flex-direction:column-reverse;align-items:flex-start;gap:12px;padding-top:24px}
  .footer__legal .r{flex-wrap:wrap;gap:8px 16px}

  /* ---------- dolny pasek menu (fixed) ---------- */
  .tabbar{display:block;position:fixed;left:0;right:0;bottom:0;z-index:60;background:rgba(255,255,255,.82);backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px)}
  .tabbar__row{display:grid;grid-template-columns:repeat(5,1fr);height:56px}
  .tabbar__tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;line-height:14px;font-weight:500;color:var(--muted);-webkit-tap-highlight-color:transparent}
  .tabbar__tab .ic{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;color:var(--ink-2);transition:background .2s,color .2s}
  .tabbar__tab .lucide{width:22px;height:22px}
  .tabbar__tab.is-active{color:var(--ink)}
  .tabbar__tab.is-active .ic{color:var(--accent)}
  .tabbar__tab[aria-expanded="true"]{color:var(--ink)}
  .tabbar__tab[aria-expanded="true"] .ic{background:var(--ink);color:#fff}
  .tabbar__tab[aria-expanded="true"] .lucide{width:14px;height:14px}

  /* ---------- arkusz „Menu” ---------- */
  .scrim{display:block;position:fixed;inset:0;z-index:55;background:rgba(30,38,46,.4);opacity:0;pointer-events:none;transition:opacity .25s}
  .scrim.is-open{opacity:1;pointer-events:auto}
  .sheet{display:flex;flex-direction:column;gap:14px;position:fixed;left:0;right:0;bottom:calc(57px + env(safe-area-inset-bottom,0px));z-index:58;background:#fff;border-radius:20px 20px 0 0;padding:10px 16px 20px;transform:translateY(110%);transition:transform .35s var(--ease-out);max-height:calc(100vh - 56px - 90px);overflow:auto;visibility:hidden}
  .sheet.is-open{transform:none;visibility:visible}
  .sheet__handle{width:36px;height:4px;border-radius:999px;background:var(--line);margin:0 auto}
  .sheet__head{display:flex;align-items:center;justify-content:space-between}
  .sheet__head .heading-xs{font-size:18px;line-height:24px;padding-right:12px}
  .sheet__head .lang{margin:0;background:var(--paper-3);border:0;padding:2px}
  .sheet__head .lang span.is-active{background:var(--ink);color:#fff}
  .sheet__list{display:flex;flex-direction:column}
  .sheet__item{display:flex;align-items:center;gap:12px;padding:12px 4px 12px 0;border-top:1px solid var(--line)}
  .sheet__item .sq{width:36px;height:36px;border-radius:50%;background:var(--paper-2);display:grid;place-items:center;color:var(--accent);flex:none}
  .sheet__item .sq .lucide{width:16px;height:16px}
  .sheet__item .t{flex:1;min-width:0}
  .sheet__item .t strong{display:block;font-size:15px;font-weight:500;line-height:20px}
  .sheet__item .t span{display:block;font-size:13px;line-height:18px;color:var(--muted)}
  .sheet__item > .lucide{width:16px;height:16px;color:var(--muted)}
  .sheet__ctas{display:flex;flex-direction:column;gap:10px}
  .sheet__ctas .btn{width:100%;justify-content:center}
  .sheet__item{width:100%;text-align:left;-webkit-tap-highlight-color:transparent}
  .sheet__item .sq--module{border-radius:10px;background:var(--paper-3);color:var(--ink-2)}
  .sheet__item .sq--module .lucide{width:18px;height:18px}
  .sheet__group{padding:14px 0 6px}
  .sheet__group + .sheet__item{border-top:0}
  .sheet__close{width:36px;height:36px;border-radius:50%;background:var(--paper-3);display:grid;place-items:center}
  .sheet__close .lucide{width:16px;height:16px}
  .sheet__foot{display:flex;flex-direction:column;gap:12px;padding-top:14px;border-top:1px solid var(--line)}
  .sheet__foot .chips{display:flex;flex-wrap:wrap;gap:6px}
  .sheet--modules{gap:8px}
  body.sheet-open{overflow:hidden}
}
